aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJoakim Verona2013-08-15 19:16:52 +0200
committerJoakim Verona2013-08-15 19:16:52 +0200
commitdd2ec20a745d3c3436b5ca842e2c0b5bf8c7e26f (patch)
tree04ca07eec17a2bd3e5947f909707f1a71b81f0fe /lisp
parentd7d5ffd611d0fbeb9d55180d328e9203f3a1e199 (diff)
parentb74f0d960f8c297dcaa125f3af051bd1a34869a5 (diff)
downloademacs-dd2ec20a745d3c3436b5ca842e2c0b5bf8c7e26f.tar.gz
emacs-dd2ec20a745d3c3436b5ca842e2c0b5bf8c7e26f.zip
merge from trunk
Diffstat (limited to 'lisp')
-rw-r--r--lisp/net/tramp-adb.el5
-rw-r--r--lisp/net/tramp-cmds.el6
-rw-r--r--lisp/net/tramp-compat.el3
-rw-r--r--lisp/net/tramp-ftp.el8
-rw-r--r--lisp/net/tramp-gvfs.el11
-rw-r--r--lisp/net/tramp-gw.el11
-rw-r--r--lisp/net/tramp-sh.el23
-rw-r--r--lisp/net/tramp-smb.el5
-rw-r--r--lisp/net/tramp.el14
9 files changed, 45 insertions, 41 deletions
diff --git a/lisp/net/tramp-adb.el b/lisp/net/tramp-adb.el
index 389edf1c919..42fa3165847 100644
--- a/lisp/net/tramp-adb.el
+++ b/lisp/net/tramp-adb.el
@@ -36,7 +36,10 @@
36(require 'tramp) 36(require 'tramp)
37(require 'time-date) 37(require 'time-date)
38 38
39(defvar dired-move-to-filename-regexp) 39;; Pacify byte-compiler.
40(eval-when-compile
41 (defvar directory-sep-char)
42 (defvar dired-move-to-filename-regexp))
40 43
41(defcustom tramp-adb-program "adb" 44(defcustom tramp-adb-program "adb"
42 "Name of the Android Debug Bridge program." 45 "Name of the Android Debug Bridge program."
diff --git a/lisp/net/tramp-cmds.el b/lisp/net/tramp-cmds.el
index 462f0d88367..7c04cbf3b60 100644
--- a/lisp/net/tramp-cmds.el
+++ b/lisp/net/tramp-cmds.el
@@ -30,6 +30,12 @@
30 30
31(require 'tramp) 31(require 'tramp)
32 32
33;; Pacify byte-compiler.
34(eval-when-compile
35 (defvar buffer-name)
36 (defvar reporter-eval-buffer)
37 (defvar reporter-prompt-for-summary-p))
38
33(defun tramp-list-tramp-buffers () 39(defun tramp-list-tramp-buffers ()
34 "Return a list of all Tramp connection buffers." 40 "Return a list of all Tramp connection buffers."
35 (append 41 (append
diff --git a/lisp/net/tramp-compat.el b/lisp/net/tramp-compat.el
index c42a29981b7..71703fe6ab1 100644
--- a/lisp/net/tramp-compat.el
+++ b/lisp/net/tramp-compat.el
@@ -29,9 +29,8 @@
29 29
30;;; Code: 30;;; Code:
31 31
32;; Pacify byte-compiler.
32(eval-when-compile 33(eval-when-compile
33
34 ;; Pacify byte-compiler.
35 (require 'cl)) 34 (require 'cl))
36 35
37(eval-and-compile 36(eval-and-compile
diff --git a/lisp/net/tramp-ftp.el b/lisp/net/tramp-ftp.el
index 7d266d4d172..fbc02911d93 100644
--- a/lisp/net/tramp-ftp.el
+++ b/lisp/net/tramp-ftp.el
@@ -30,11 +30,13 @@
30 30
31(require 'tramp) 31(require 'tramp)
32 32
33;; Pacify byte-compiler.
33(eval-when-compile 34(eval-when-compile
34
35 ;; Pacify byte-compiler.
36 (require 'cl) 35 (require 'cl)
37 (require 'custom)) 36 (require 'custom)
37 (defvar ange-ftp-ftp-name-arg)
38 (defvar ange-ftp-ftp-name-res)
39 (defvar ange-ftp-name-format))
38 40
39;; Disable Ange-FTP from file-name-handler-alist. 41;; Disable Ange-FTP from file-name-handler-alist.
40;; To handle EFS, the following functions need to be dealt with: 42;; To handle EFS, the following functions need to be dealt with:
diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el
index d0270aabacc..7c41499a2e9 100644
--- a/lisp/net/tramp-gvfs.el
+++ b/lisp/net/tramp-gvfs.el
@@ -97,11 +97,6 @@
97;; option "--without-dbus". Declare used subroutines and variables. 97;; option "--without-dbus". Declare used subroutines and variables.
98(declare-function dbus-get-unique-name "dbusbind.c") 98(declare-function dbus-get-unique-name "dbusbind.c")
99 99
100;; Pacify byte-compiler
101(eval-when-compile
102 (require 'cl)
103 (require 'custom))
104
105(require 'tramp) 100(require 'tramp)
106 101
107(require 'dbus) 102(require 'dbus)
@@ -109,6 +104,12 @@
109(require 'url-util) 104(require 'url-util)
110(require 'zeroconf) 105(require 'zeroconf)
111 106
107;; Pacify byte-compiler.
108(eval-when-compile
109 (require 'cl)
110 (require 'custom)
111 (defvar ls-lisp-use-insert-directory-program))
112
112;;;###tramp-autoload 113;;;###tramp-autoload
113(defcustom tramp-gvfs-methods '("dav" "davs" "obex" "synce") 114(defcustom tramp-gvfs-methods '("dav" "davs" "obex" "synce")
114 "List of methods for remote files, accessed with GVFS." 115 "List of methods for remote files, accessed with GVFS."
diff --git a/lisp/net/tramp-gw.el b/lisp/net/tramp-gw.el
index f7c6eba4006..7d221618f42 100644
--- a/lisp/net/tramp-gw.el
+++ b/lisp/net/tramp-gw.el
@@ -33,16 +33,11 @@
33 33
34(require 'tramp) 34(require 'tramp)
35 35
36;; Pacify byte-compiler 36;; Pacify byte-compiler.
37(eval-when-compile 37(eval-when-compile
38 (require 'cl) 38 (require 'cl)
39 (require 'custom)) 39 (require 'custom)
40 40 (defvar socks-noproxy))
41;; Avoid byte-compiler warnings if the byte-compiler supports this.
42;; Currently, XEmacs supports this.
43(eval-when-compile
44 (when (featurep 'xemacs)
45 (byte-compiler-options (warnings (- unused-vars)))))
46 41
47;; We don't add the following methods to `tramp-methods', in order to 42;; We don't add the following methods to `tramp-methods', in order to
48;; exclude them from file name completion. 43;; exclude them from file name completion.
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 5460bd00d6c..6e96616d2d3 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -26,21 +26,15 @@
26 26
27;;; Code: 27;;; Code:
28 28
29(eval-when-compile (require 'cl)) ; ignore-errors
30(require 'tramp) 29(require 'tramp)
31 30
32;; Pacify byte-compiler. The function is needed on XEmacs only. I'm 31;; Pacify byte-compiler.
33;; not sure at all that this is the right way to do it, but let's hope 32(eval-when-compile
34;; it works for now, and wait for a guru to point out the Right Way to 33 (require 'cl)
35;; achieve this. 34 (require 'dired)
36;;(eval-when-compile 35 (defvar directory-sep-char)
37;; (unless (fboundp 'dired-insert-set-properties) 36 (defvar tramp-gw-tunnel-method)
38;; (fset 'dired-insert-set-properties 'ignore))) 37 (defvar tramp-gw-socks-method))
39;; Gerd suggests this:
40(eval-when-compile (require 'dired))
41;; Note that dired is required at run-time, too, when it is needed.
42;; It is only needed on XEmacs for the function
43;; `dired-insert-set-properties'.
44 38
45(defcustom tramp-inline-compress-start-size 4096 39(defcustom tramp-inline-compress-start-size 4096
46 "The minimum size of compressing where inline transfer. 40 "The minimum size of compressing where inline transfer.
@@ -4203,9 +4197,6 @@ Goes through the list `tramp-inline-compress-commands'."
4203 (tramp-message 4197 (tramp-message
4204 vec 2 "Couldn't find an inline transfer compress command"))))) 4198 vec 2 "Couldn't find an inline transfer compress command")))))
4205 4199
4206(defvar tramp-gw-tunnel-method)
4207(defvar tramp-gw-socks-method)
4208
4209(defun tramp-compute-multi-hops (vec) 4200(defun tramp-compute-multi-hops (vec)
4210 "Expands VEC according to `tramp-default-proxies-alist'. 4201 "Expands VEC according to `tramp-default-proxies-alist'.
4211Gateway hops are already opened." 4202Gateway hops are already opened."
diff --git a/lisp/net/tramp-smb.el b/lisp/net/tramp-smb.el
index 0dd9286da2d..39e87f994c2 100644
--- a/lisp/net/tramp-smb.el
+++ b/lisp/net/tramp-smb.el
@@ -27,9 +27,12 @@
27 27
28;;; Code: 28;;; Code:
29 29
30(eval-when-compile (require 'cl)) ; block, return
31(require 'tramp) 30(require 'tramp)
32 31
32;; Pacify byte-compiler.
33(eval-when-compile
34 (require 'cl))
35
33;; Define SMB method ... 36;; Define SMB method ...
34;;;###tramp-autoload 37;;;###tramp-autoload
35(defconst tramp-smb-method "smb" 38(defconst tramp-smb-method "smb"
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index ff090f8257f..29df2bb6577 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -57,9 +57,17 @@
57 57
58;;; Code: 58;;; Code:
59 59
60(eval-when-compile (require 'cl)) ; ignore-errors
61(require 'tramp-compat) 60(require 'tramp-compat)
62 61
62;; Pacify byte-compiler.
63(eval-when-compile
64 (require 'cl)
65 (defvar bkup-backup-directory-info)
66 (defvar directory-sep-char)
67 (defvar eshell-path-env)
68 (defvar file-notify-descriptors)
69 (defvar outline-regexp))
70
63;;; User Customizable Internal Variables: 71;;; User Customizable Internal Variables:
64 72
65(defgroup tramp nil 73(defgroup tramp nil
@@ -3350,7 +3358,6 @@ of."
3350 (tramp-error 3358 (tramp-error
3351 v 'file-notify-error "File notification not supported for `%s'" filename))) 3359 v 'file-notify-error "File notification not supported for `%s'" filename)))
3352 3360
3353(defvar file-notify-descriptors)
3354(defun tramp-handle-file-notify-rm-watch (proc) 3361(defun tramp-handle-file-notify-rm-watch (proc)
3355 "Like `file-notify-rm-watch' for Tramp files." 3362 "Like `file-notify-rm-watch' for Tramp files."
3356 ;; The descriptor must be a process object. 3363 ;; The descriptor must be a process object.
@@ -4182,9 +4189,6 @@ Only works for Bourne-like shells."
4182 4189
4183;;; Integration of eshell.el: 4190;;; Integration of eshell.el:
4184 4191
4185(eval-when-compile
4186 (defvar eshell-path-env))
4187
4188;; eshell.el keeps the path in `eshell-path-env'. We must change it 4192;; eshell.el keeps the path in `eshell-path-env'. We must change it
4189;; when `default-directory' points to another host. 4193;; when `default-directory' points to another host.
4190(defun tramp-eshell-directory-change () 4194(defun tramp-eshell-directory-change ()