Use lexical-bind in Tramp
commite1392faae5c5cc7805b52efacbb25a71213afdeb
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 23 Mar 2017 13:58:04 +0000 (23 14:58 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 23 Mar 2017 13:58:04 +0000 (23 14:58 +0100)
treee094f7eeaa13bd26a28f202a51b026e7c9c12017
parente472cfe8f3b01f29a49614f6207e4128e8b36b8c
Use lexical-bind in Tramp

* lisp/net/tramp*.el: Add lexical-binding cookie.  Move declarations up.

* lisp/net/tramp-adb.el (tramp-adb-parse-device-names): Use `push'
rather than `add-to-list'.
(tramp-adb-get-device): Remove unused variable.

* lisp/net/tramp-gvfs.el (tramp-gvfs-parse-device-names): Remove unused
variable.

* lisp/net/tramp.el (auto-save-file-name-transforms): Declare.
(tramp-find-file-name-coding-system-alist): Use `push' rather
than `add-to-list'.

* test/lisp/net/tramp-tests.el: Add lexical-binding cookie.
Require 'dired.  Move declarations up.
(tramp-test32-make-nearby-temp-file): Wrap `make-nearby-temp-file'
and `temporary-file-directory' calls with `with-no-warnings'.
(tramp-test35-asynchronous-requests): Mark unused variable.
12 files changed:
lisp/net/tramp-adb.el
lisp/net/tramp-cache.el
lisp/net/tramp-cmds.el
lisp/net/tramp-compat.el
lisp/net/tramp-ftp.el
lisp/net/tramp-gvfs.el
lisp/net/tramp-sh.el
lisp/net/tramp-smb.el
lisp/net/tramp-uu.el
lisp/net/tramp.el
lisp/net/trampver.el
test/lisp/net/tramp-tests.el