aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/net
diff options
context:
space:
mode:
authorKim F. Storm2005-02-09 15:50:47 +0000
committerKim F. Storm2005-02-09 15:50:47 +0000
commitbf247b6ed0b5e96845e785302bdaa97fcf6a8b84 (patch)
tree3e5225520dfe10e9394f68088de2fe22027aa53f /lisp/net
parent1de0ae85b33c8d8cb77ab839f66d2df4f9aa7b94 (diff)
downloademacs-bf247b6ed0b5e96845e785302bdaa97fcf6a8b84.tar.gz
emacs-bf247b6ed0b5e96845e785302bdaa97fcf6a8b84.zip
Change release version from 21.4 to 22.1 throughout.
Change development version from 21.3.50 to 22.0.50.
Diffstat (limited to 'lisp/net')
-rw-r--r--lisp/net/ange-ftp.el2
-rw-r--r--lisp/net/tls.el6
-rw-r--r--lisp/net/tramp-smb.el6
-rw-r--r--lisp/net/tramp-util.el4
-rw-r--r--lisp/net/tramp-vc.el26
-rw-r--r--lisp/net/tramp.el96
6 files changed, 70 insertions, 70 deletions
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el
index 16a4826b8ae..8b4ed89e7b0 100644
--- a/lisp/net/ange-ftp.el
+++ b/lisp/net/ange-ftp.el
@@ -1004,7 +1004,7 @@ or nil meaning don't change it."
1004 :type '(repeat (cons regexp (choice (const :tag "On" "on") 1004 :type '(repeat (cons regexp (choice (const :tag "On" "on")
1005 (const :tag "Off" "off") 1005 (const :tag "Off" "off")
1006 (const :tag "Don't change" nil)))) 1006 (const :tag "Don't change" nil))))
1007 :version "21.4") 1007 :version "22.1")
1008 1008
1009;;;; ------------------------------------------------------------ 1009;;;; ------------------------------------------------------------
1010;;;; Hash table support. 1010;;;; Hash table support.
diff --git a/lisp/net/tls.el b/lisp/net/tls.el
index 1b58760c17c..fd747387100 100644
--- a/lisp/net/tls.el
+++ b/lisp/net/tls.el
@@ -67,21 +67,21 @@ after successful negotiation."
67 67
68(defcustom tls-process-connection-type nil 68(defcustom tls-process-connection-type nil
69 "*Value for `process-connection-type' to use when starting TLS process." 69 "*Value for `process-connection-type' to use when starting TLS process."
70 :version "21.4" 70 :version "22.1"
71 :type 'boolean 71 :type 'boolean
72 :group 'tls) 72 :group 'tls)
73 73
74(defcustom tls-success "- Handshake was completed" 74(defcustom tls-success "- Handshake was completed"
75 "*Regular expression indicating completed TLS handshakes. 75 "*Regular expression indicating completed TLS handshakes.
76The default is what GNUTLS's \"gnutls-cli\" outputs." 76The default is what GNUTLS's \"gnutls-cli\" outputs."
77 :version "21.4" 77 :version "22.1"
78 :type 'regexp 78 :type 'regexp
79 :group 'tls) 79 :group 'tls)
80 80
81(defcustom tls-certtool-program (executable-find "certtool") 81(defcustom tls-certtool-program (executable-find "certtool")
82 "Name of GnuTLS certtool. 82 "Name of GnuTLS certtool.
83Used by `tls-certificate-information'." 83Used by `tls-certificate-information'."
84 :version "21.4" 84 :version "22.1"
85 :type '(repeat string) 85 :type '(repeat string)
86 :group 'tls) 86 :group 'tls)
87 87
diff --git a/lisp/net/tramp-smb.el b/lisp/net/tramp-smb.el
index 6fa0433a574..55ab9e693f1 100644
--- a/lisp/net/tramp-smb.el
+++ b/lisp/net/tramp-smb.el
@@ -340,11 +340,11 @@ KEEP-DATE is not handled in case NEWNAME resides on an SMB server."
340 (mapcar 340 (mapcar
341 (lambda (x) 341 (lambda (x)
342 ;; We cannot call `file-attributes' for backward compatibility reasons. 342 ;; We cannot call `file-attributes' for backward compatibility reasons.
343 ;; Its optional parameter ID-FORMAT is introduced with Emacs 21.4. 343 ;; Its optional parameter ID-FORMAT is introduced with Emacs 22.1.
344 (cons x (tramp-smb-handle-file-attributes 344 (cons x (tramp-smb-handle-file-attributes
345 (if full x (concat (file-name-as-directory directory) x)) id-format))) 345 (if full x (concat (file-name-as-directory directory) x)) id-format)))
346 (directory-files directory full match nosort))) 346 (directory-files directory full match nosort)))
347 347
348(defun tramp-smb-handle-file-attributes (filename &optional id-format) 348(defun tramp-smb-handle-file-attributes (filename &optional id-format)
349 "Like `file-attributes' for tramp files." 349 "Like `file-attributes' for tramp files."
350; (with-parsed-tramp-file-name filename nil 350; (with-parsed-tramp-file-name filename nil
@@ -500,7 +500,7 @@ WILDCARD and FULL-DIRECTORY-P are not handled."
500 (entries (tramp-smb-get-file-entries user host share file))) 500 (entries (tramp-smb-get-file-entries user host share file)))
501 501
502 ;; Delete dummy "" entry, useless entries 502 ;; Delete dummy "" entry, useless entries
503 (setq entries 503 (setq entries
504 (if (file-directory-p filename) 504 (if (file-directory-p filename)
505 (delq (assoc "" entries) entries) 505 (delq (assoc "" entries) entries)
506 ;; We just need the only and only entry FILENAME. 506 ;; We just need the only and only entry FILENAME.
diff --git a/lisp/net/tramp-util.el b/lisp/net/tramp-util.el
index 1cd7f14dcd6..8f195fe4ad8 100644
--- a/lisp/net/tramp-util.el
+++ b/lisp/net/tramp-util.el
@@ -34,7 +34,7 @@
34 34
35;; Define a Tramp minor mode. It's intention is to redefine some keys for Tramp 35;; Define a Tramp minor mode. It's intention is to redefine some keys for Tramp
36;; specific functions, like compilation. 36;; specific functions, like compilation.
37;; The key remapping works since Emacs 21.4 only. Unknown for XEmacs. 37;; The key remapping works since Emacs 22.1 only. Unknown for XEmacs.
38 38
39(when (fboundp 'define-minor-mode) 39(when (fboundp 'define-minor-mode)
40 40
@@ -59,7 +59,7 @@ If remapping functionality for keymaps is defined, this happens for all
59bindings. Otherwise, only bindings active during invocation are taken 59bindings. Otherwise, only bindings active during invocation are taken
60into account. XEmacs menubar bindings are not changed by this." 60into account. XEmacs menubar bindings are not changed by this."
61 (if (functionp 'command-remapping) 61 (if (functionp 'command-remapping)
62 ;; Emacs 21.4 62 ;; Emacs 22.1
63 (eval 63 (eval
64 `(define-key tramp-minor-mode-map [remap ,old-command] new-command)) 64 `(define-key tramp-minor-mode-map [remap ,old-command] new-command))
65 ;; previous Emacs 21 versions. 65 ;; previous Emacs 21 versions.
diff --git a/lisp/net/tramp-vc.el b/lisp/net/tramp-vc.el
index c2a9ae737df..7c75b0f01c9 100644
--- a/lisp/net/tramp-vc.el
+++ b/lisp/net/tramp-vc.el
@@ -51,7 +51,7 @@
51;; This used to blow away the file-name-handler-alist and reinstall 51;; This used to blow away the file-name-handler-alist and reinstall
52;; TRAMP into it. This was intended to let VC work remotely. It didn't, 52;; TRAMP into it. This was intended to let VC work remotely. It didn't,
53;; at least not in my XEmacs 21.2 install. 53;; at least not in my XEmacs 21.2 install.
54;; 54;;
55;; In any case, tramp-run-real-handler now deals correctly with disabling 55;; In any case, tramp-run-real-handler now deals correctly with disabling
56;; the things that should be, making this a no-op. 56;; the things that should be, making this a no-op.
57;; 57;;
@@ -96,7 +96,7 @@ See `vc-do-command' for more information."
96 (set (make-local-variable 'vc-parent-buffer-name) 96 (set (make-local-variable 'vc-parent-buffer-name)
97 (concat " from " (buffer-name camefrom))) 97 (concat " from " (buffer-name camefrom)))
98 (setq default-directory olddir) 98 (setq default-directory olddir)
99 99
100 (erase-buffer) 100 (erase-buffer)
101 101
102 (mapcar 102 (mapcar
@@ -230,7 +230,7 @@ Since TRAMP doesn't do async commands yet, this function doesn't, either."
230 (if (or (and (stringp file) (tramp-tramp-file-p file)) 230 (if (or (and (stringp file) (tramp-tramp-file-p file))
231 (and (buffer-file-name) (tramp-tramp-file-p (buffer-file-name)))) 231 (and (buffer-file-name) (tramp-tramp-file-p (buffer-file-name))))
232 (setq ad-return-value 232 (setq ad-return-value
233 (apply 'tramp-vc-do-command-new buffer okstatus command 233 (apply 'tramp-vc-do-command-new buffer okstatus command
234 file ;(or file (buffer-file-name)) 234 file ;(or file (buffer-file-name))
235 flags)) 235 flags))
236 ad-do-it))) 236 ad-do-it)))
@@ -243,7 +243,7 @@ Since TRAMP doesn't do async commands yet, this function doesn't, either."
243 (if (or (and (stringp file) (tramp-tramp-file-p file)) 243 (if (or (and (stringp file) (tramp-tramp-file-p file))
244 (and (buffer-file-name) (tramp-tramp-file-p (buffer-file-name)))) 244 (and (buffer-file-name) (tramp-tramp-file-p (buffer-file-name))))
245 (setq ad-return-value 245 (setq ad-return-value
246 (apply 'tramp-vc-do-command buffer okstatus command 246 (apply 'tramp-vc-do-command buffer okstatus command
247 (or file (buffer-file-name)) last flags)) 247 (or file (buffer-file-name)) last flags))
248 ad-do-it))))) 248 ad-do-it)))))
249;;-) 249;;-)
@@ -298,7 +298,7 @@ Since TRAMP doesn't do async commands yet, this function doesn't, either."
298 (tramp-wait-for-output) 298 (tramp-wait-for-output)
299 (setq exec-status (read (current-buffer))) 299 (setq exec-status (read (current-buffer)))
300 (message "Command %s returned status %d." command exec-status))) 300 (message "Command %s returned status %d." command exec-status)))
301 301
302 ;; Maybe okstatus can be `async' here. But then, maybe the 302 ;; Maybe okstatus can be `async' here. But then, maybe the
303 ;; async thing is new in Emacs 21, but this function is only 303 ;; async thing is new in Emacs 21, but this function is only
304 ;; used in Emacs 20. 304 ;; used in Emacs 20.
@@ -319,7 +319,7 @@ Since TRAMP doesn't do async commands yet, this function doesn't, either."
319 (if (or (and (stringp file) (tramp-tramp-file-p file)) 319 (if (or (and (stringp file) (tramp-tramp-file-p file))
320 (and (buffer-file-name) (tramp-tramp-file-p (buffer-file-name)))) 320 (and (buffer-file-name) (tramp-tramp-file-p (buffer-file-name))))
321 (setq ad-return-value 321 (setq ad-return-value
322 (apply 'tramp-vc-simple-command okstatus command 322 (apply 'tramp-vc-simple-command okstatus command
323 (or file (buffer-file-name)) args)) 323 (or file (buffer-file-name)) args))
324 ad-do-it))) 324 ad-do-it)))
325 325
@@ -381,17 +381,17 @@ Since TRAMP doesn't do async commands yet, this function doesn't, either."
381 381
382 382
383;; Do we need to advise the vc-user-login-name function anyway? 383;; Do we need to advise the vc-user-login-name function anyway?
384;; This will return the correct login name for the owner of a 384;; This will return the correct login name for the owner of a
385;; file. It does not deal with the default remote user name... 385;; file. It does not deal with the default remote user name...
386;; 386;;
387;; That is, when vc calls (vc-user-login-name), we return the 387;; That is, when vc calls (vc-user-login-name), we return the
388;; local login name, something that may be different to the remote 388;; local login name, something that may be different to the remote
389;; default. 389;; default.
390;; 390;;
391;; The remote VC operations will occur as the user that we logged 391;; The remote VC operations will occur as the user that we logged
392;; in with however - not always the same as the local user. 392;; in with however - not always the same as the local user.
393;; 393;;
394;; In the end, I did advise the function. This is because, well, 394;; In the end, I did advise the function. This is because, well,
395;; the thing didn't work right otherwise ;) 395;; the thing didn't work right otherwise ;)
396;; 396;;
397;; Daniel Pittman <daniel@danann.net> 397;; Daniel Pittman <daniel@danann.net>
@@ -409,7 +409,7 @@ filename we are thinking about..."
409 ;; boundness-checking into this function? 409 ;; boundness-checking into this function?
410 (let* ((file (symbol-value 'file)) 410 (let* ((file (symbol-value 'file))
411 (remote-uid 411 (remote-uid
412 ;; With Emacs 21.4, `file-attributes' has got an optional parameter 412 ;; With Emacs 22.1, `file-attributes' has got an optional parameter
413 ;; ID-FORMAT. Handle this case backwards compatible. 413 ;; ID-FORMAT. Handle this case backwards compatible.
414 (if (and (functionp 'subr-arity) 414 (if (and (functionp 'subr-arity)
415 (= 2 (cdr (funcall (symbol-function 'subr-arity) 415 (= 2 (cdr (funcall (symbol-function 'subr-arity)
@@ -444,11 +444,11 @@ filename we are thinking about..."
444 (tramp-handle-vc-user-login-name uid)))) ; get the owner name 444 (tramp-handle-vc-user-login-name uid)))) ; get the owner name
445 ad-do-it))) ; else call the original 445 ad-do-it))) ; else call the original
446 446
447 447
448;; Determine the name of the user owning a file. 448;; Determine the name of the user owning a file.
449(defun tramp-file-owner (filename) 449(defun tramp-file-owner (filename)
450 "Return who owns FILE (user name, as a string)." 450 "Return who owns FILE (user name, as a string)."
451 (let ((v (tramp-dissect-file-name 451 (let ((v (tramp-dissect-file-name
452 (expand-file-name filename)))) 452 (expand-file-name filename))))
453 (if (not (file-exists-p filename)) 453 (if (not (file-exists-p filename))
454 nil ; file cannot be opened 454 nil ; file cannot be opened
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 90bc30744c7..583b5fa2afe 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -34,7 +34,7 @@
34;; 34;;
35;; Notes: 35;; Notes:
36;; ----- 36;; -----
37;; 37;;
38;; This package only works for Emacs 20 and higher, and for XEmacs 21 38;; This package only works for Emacs 20 and higher, and for XEmacs 21
39;; and higher. (XEmacs 20 is missing the `with-timeout' macro. Emacs 39;; and higher. (XEmacs 20 is missing the `with-timeout' macro. Emacs
40;; 19 is reported to have other problems. For XEmacs 21, you need the 40;; 19 is reported to have other problems. For XEmacs 21, you need the
@@ -160,7 +160,7 @@ Nil means to use a separate filename syntax for Tramp.")
160(defgroup tramp nil 160(defgroup tramp nil
161 "Edit remote files with a combination of rsh and rcp or similar programs." 161 "Edit remote files with a combination of rsh and rcp or similar programs."
162 :group 'files 162 :group 'files
163 :version "21.4") 163 :version "22.1")
164 164
165(defcustom tramp-verbose 9 165(defcustom tramp-verbose 9
166 "*Verbosity level for tramp.el. 0 means be silent, 10 is most verbose." 166 "*Verbosity level for tramp.el. 0 means be silent, 10 is most verbose."
@@ -205,7 +205,7 @@ file name, the backup directory is prepended with Tramp file name prefix
205 205
206gives the same backup policy for Tramp files on their hosts like the 206gives the same backup policy for Tramp files on their hosts like the
207policy for local files." 207policy for local files."
208 :type '(repeat 208 :type '(repeat
209 (list (regexp :tag "File regexp") 209 (list (regexp :tag "File regexp")
210 (string :tag "Backup Dir") 210 (string :tag "Backup Dir")
211 (set :inline t 211 (set :inline t
@@ -506,7 +506,7 @@ This variable defaults to the value of `tramp-encoding-shell'."
506 (tramp-copy-args nil) 506 (tramp-copy-args nil)
507 (tramp-copy-keep-date-arg "-p") 507 (tramp-copy-keep-date-arg "-p")
508 (tramp-password-end-of-line "xy")) ;see docstring for "xy" 508 (tramp-password-end-of-line "xy")) ;see docstring for "xy"
509 ("fcp" 509 ("fcp"
510 (tramp-connection-function tramp-open-connection-rsh) 510 (tramp-connection-function tramp-open-connection-rsh)
511 (tramp-login-program "fsh") 511 (tramp-login-program "fsh")
512 (tramp-copy-program "fcp") 512 (tramp-copy-program "fcp")
@@ -633,7 +633,7 @@ variable `tramp-methods'."
633 ("rsh" tramp-multi-connect-rlogin "rsh %h -l %u%n") 633 ("rsh" tramp-multi-connect-rlogin "rsh %h -l %u%n")
634 ("remsh" tramp-multi-connect-rlogin "remsh %h -l %u%n") 634 ("remsh" tramp-multi-connect-rlogin "remsh %h -l %u%n")
635 ("ssh" tramp-multi-connect-rlogin "ssh %h -l %u%n") 635 ("ssh" tramp-multi-connect-rlogin "ssh %h -l %u%n")
636 ("ssht" tramp-multi-connect-rlogin "ssh %h -e none -t -t -l %u%n") 636 ("ssht" tramp-multi-connect-rlogin "ssh %h -e none -t -t -l %u%n")
637 ("su" tramp-multi-connect-su "su - %u%n") 637 ("su" tramp-multi-connect-su "su - %u%n")
638 ("sudo" tramp-multi-connect-su "sudo -u %u -s -p Password:%n")) 638 ("sudo" tramp-multi-connect-su "sudo -u %u -s -p Password:%n"))
639 "*List of connection functions for multi-hop methods. 639 "*List of connection functions for multi-hop methods.
@@ -777,7 +777,7 @@ the info pages.")
777 "sudo" tramp-completion-function-alist-su) 777 "sudo" tramp-completion-function-alist-su)
778 (tramp-set-completion-function 778 (tramp-set-completion-function
779 "multi" nil) 779 "multi" nil)
780 (tramp-set-completion-function 780 (tramp-set-completion-function
781 "scpx" tramp-completion-function-alist-ssh) 781 "scpx" tramp-completion-function-alist-ssh)
782 (tramp-set-completion-function 782 (tramp-set-completion-function
783 "sshx" tramp-completion-function-alist-ssh) 783 "sshx" tramp-completion-function-alist-ssh)
@@ -2064,7 +2064,7 @@ target of the symlink differ."
2064 (setq filename (tramp-file-name-localname 2064 (setq filename (tramp-file-name-localname
2065 (tramp-dissect-file-name 2065 (tramp-dissect-file-name
2066 (expand-file-name filename))))) 2066 (expand-file-name filename)))))
2067 2067
2068 ;; Right, they are on the same host, regardless of user, method, etc. 2068 ;; Right, they are on the same host, regardless of user, method, etc.
2069 ;; We now make the link on the remote machine. This will occur as the user 2069 ;; We now make the link on the remote machine. This will occur as the user
2070 ;; that FILENAME belongs to. 2070 ;; that FILENAME belongs to.
@@ -2073,7 +2073,7 @@ target of the symlink differ."
2073 l-multi-method l-method l-user l-host 2073 l-multi-method l-method l-user l-host
2074 (format "cd %s && %s -sf %s %s" 2074 (format "cd %s && %s -sf %s %s"
2075 cwd ln 2075 cwd ln
2076 filename 2076 filename
2077 l-localname) 2077 l-localname)
2078 t))))) 2078 t)))))
2079 2079
@@ -2419,7 +2419,7 @@ of."
2419 (let* ((attr (file-attributes f)) 2419 (let* ((attr (file-attributes f))
2420 (modtime (nth 5 attr)) 2420 (modtime (nth 5 attr))
2421 (mt (visited-file-modtime))) 2421 (mt (visited-file-modtime)))
2422 2422
2423 (cond 2423 (cond
2424 ;; file exists, and has a known modtime. 2424 ;; file exists, and has a known modtime.
2425 ((and attr (not (equal modtime '(0 0)))) 2425 ((and attr (not (equal modtime '(0 0))))
@@ -2766,7 +2766,7 @@ if the remote host can't provide the modtime."
2766 (push (buffer-substring (point) 2766 (push (buffer-substring (point)
2767 (tramp-line-end-position)) 2767 (tramp-line-end-position))
2768 result)) 2768 result))
2769 2769
2770 (tramp-send-command multi-method method user host "cd") 2770 (tramp-send-command multi-method method user host "cd")
2771 (tramp-wait-for-output) 2771 (tramp-wait-for-output)
2772 2772
@@ -3211,7 +3211,7 @@ This is like `dired-recursive-delete-directory' for tramp files."
3211 'file-error 3211 'file-error
3212 (list "Removing old file name" "no such directory" filename))) 3212 (list "Removing old file name" "no such directory" filename)))
3213 ;; Which is better, -r or -R? (-r works for me <daniel@danann.net>) 3213 ;; Which is better, -r or -R? (-r works for me <daniel@danann.net>)
3214 (tramp-send-command multi-method method user host 3214 (tramp-send-command multi-method method user host
3215 (format "rm -r %s" (tramp-shell-quote-argument localname))) 3215 (format "rm -r %s" (tramp-shell-quote-argument localname)))
3216 ;; Wait for the remote system to return to us... 3216 ;; Wait for the remote system to return to us...
3217 ;; This might take a while, allow it plenty of time. 3217 ;; This might take a while, allow it plenty of time.
@@ -3219,7 +3219,7 @@ This is like `dired-recursive-delete-directory' for tramp files."
3219 ;; Make sure that it worked... 3219 ;; Make sure that it worked...
3220 (and (file-exists-p filename) 3220 (and (file-exists-p filename)
3221 (error "Failed to recursively delete %s" filename)))) 3221 (error "Failed to recursively delete %s" filename))))
3222 3222
3223(defun tramp-handle-dired-call-process (program discard &rest arguments) 3223(defun tramp-handle-dired-call-process (program discard &rest arguments)
3224 "Like `dired-call-process' for tramp files." 3224 "Like `dired-call-process' for tramp files."
3225 (with-parsed-tramp-file-name default-directory nil 3225 (with-parsed-tramp-file-name default-directory nil
@@ -3241,7 +3241,7 @@ This is like `dired-recursive-delete-directory' for tramp files."
3241 (tramp-send-command-and-check multi-method method user host nil) 3241 (tramp-send-command-and-check multi-method method user host nil)
3242 (tramp-send-command multi-method method user host "cd") 3242 (tramp-send-command multi-method method user host "cd")
3243 (tramp-wait-for-output))))) 3243 (tramp-wait-for-output)))))
3244 3244
3245(defun tramp-handle-dired-compress-file (file &rest ok-flag) 3245(defun tramp-handle-dired-compress-file (file &rest ok-flag)
3246 "Like `dired-compress-file' for tramp files." 3246 "Like `dired-compress-file' for tramp files."
3247 ;; OK-FLAG is valid for XEmacs only, but not implemented. 3247 ;; OK-FLAG is valid for XEmacs only, but not implemented.
@@ -3501,7 +3501,7 @@ Used in `tramp-handle-shell-command'")
3501This will break if COMMAND prints a newline, followed by the value of 3501This will break if COMMAND prints a newline, followed by the value of
3502`tramp-end-of-output', followed by another newline." 3502`tramp-end-of-output', followed by another newline."
3503 ;; Asynchronous processes are far from being perfect. But it works at least 3503 ;; Asynchronous processes are far from being perfect. But it works at least
3504 ;; for `find-grep-dired' and `find-name-dired' in Emacs 21.4. 3504 ;; for `find-grep-dired' and `find-name-dired' in Emacs 22.1.
3505 (if (tramp-tramp-file-p default-directory) 3505 (if (tramp-tramp-file-p default-directory)
3506 (with-parsed-tramp-file-name default-directory nil 3506 (with-parsed-tramp-file-name default-directory nil
3507 (let ((asynchronous (string-match "[ \t]*&[ \t]*\\'" command)) 3507 (let ((asynchronous (string-match "[ \t]*&[ \t]*\\'" command))
@@ -3609,7 +3609,7 @@ This will break if COMMAND prints a newline, followed by the value of
3609 (when (and (numberp buffer) (zerop buffer)) 3609 (when (and (numberp buffer) (zerop buffer))
3610 (error "Implementation does not handle immediate return")) 3610 (error "Implementation does not handle immediate return"))
3611 (when (consp buffer) (error "Implementation does not handle error files")) 3611 (when (consp buffer) (error "Implementation does not handle error files"))
3612 (shell-command 3612 (shell-command
3613 (mapconcat 'tramp-shell-quote-argument 3613 (mapconcat 'tramp-shell-quote-argument
3614 (cons program args) 3614 (cons program args)
3615 " ") 3615 " ")
@@ -4213,7 +4213,7 @@ Falls back to normal file name handler if no tramp file name handler exists."
4213 4213
4214(defun tramp-repair-jka-compr () 4214(defun tramp-repair-jka-compr ()
4215 "If jka-compr is already loaded, move it to the front of 4215 "If jka-compr is already loaded, move it to the front of
4216`file-name-handler-alist'. On Emacs 21.4 or so this will not be 4216`file-name-handler-alist'. On Emacs 22.1 or so this will not be
4217necessary anymore." 4217necessary anymore."
4218 (let ((jka (rassoc 'jka-compr-handler file-name-handler-alist))) 4218 (let ((jka (rassoc 'jka-compr-handler file-name-handler-alist)))
4219 (when jka 4219 (when jka
@@ -4293,7 +4293,7 @@ necessary anymore."
4293;; `tramp-completion-file-name-regexp-unified' aren't different. 4293;; `tramp-completion-file-name-regexp-unified' aren't different.
4294;; If nil, `tramp-completion-run-real-handler' is called (i.e. forwarding to 4294;; If nil, `tramp-completion-run-real-handler' is called (i.e. forwarding to
4295;; `tramp-file-name-handler'). Otherwise, it takes `tramp-run-real-handler'. 4295;; `tramp-file-name-handler'). Otherwise, it takes `tramp-run-real-handler'.
4296;; Using `last-input-event' is a little bit risky, because completing a file 4296;; Using `last-input-event' is a little bit risky, because completing a file
4297;; might require loading other files, like "~/.netrc", and for them it 4297;; might require loading other files, like "~/.netrc", and for them it
4298;; shouldn't be decided based on that variable. On the other hand, those files 4298;; shouldn't be decided based on that variable. On the other hand, those files
4299;; shouldn't have partial tramp file name syntax. Maybe another variable should 4299;; shouldn't have partial tramp file name syntax. Maybe another variable should
@@ -4397,7 +4397,7 @@ necessary anymore."
4397 (funcall (nth 0 x) (nth 1 x))))) 4397 (funcall (nth 0 x) (nth 1 x)))))
4398 (tramp-get-completion-function m)) 4398 (tramp-get-completion-function m))
4399 4399
4400 (setq result (append result 4400 (setq result (append result
4401 (mapcar 4401 (mapcar
4402 (lambda (x) 4402 (lambda (x)
4403 (tramp-get-completion-user-host 4403 (tramp-get-completion-user-host
@@ -4438,7 +4438,7 @@ necessary anymore."
4438;; [nil nil "x" nil nil] 4438;; [nil nil "x" nil nil]
4439;; [nil "x" nil nil nil] 4439;; [nil "x" nil nil nil]
4440 4440
4441;; "/x:" "/x:y" "/x:y:" 4441;; "/x:" "/x:y" "/x:y:"
4442;; [nil nil nil "x" ""] [nil nil nil "x" "y"] [nil "x" nil "y" ""] 4442;; [nil nil nil "x" ""] [nil nil nil "x" "y"] [nil "x" nil "y" ""]
4443;; "/[x/" "/[x/y" 4443;; "/[x/" "/[x/y"
4444;; [nil "x" nil "" nil] [nil "x" nil "y" nil] 4444;; [nil "x" nil "" nil] [nil "x" nil "y" nil]
@@ -4907,7 +4907,7 @@ TIME is an Emacs internal time value as returned by `current-time'."
4907 "touch" nil (current-buffer) nil "-t" touch-time file)) 4907 "touch" nil (current-buffer) nil "-t" touch-time file))
4908 (pop-to-buffer (current-buffer)) 4908 (pop-to-buffer (current-buffer))
4909 (error "tramp-touch: touch failed")))))) 4909 (error "tramp-touch: touch failed"))))))
4910 4910
4911(defun tramp-buffer-name (multi-method method user host) 4911(defun tramp-buffer-name (multi-method method user host)
4912 "A name for the connection buffer for USER at HOST using METHOD." 4912 "A name for the connection buffer for USER at HOST using METHOD."
4913 (if multi-method 4913 (if multi-method
@@ -5072,7 +5072,7 @@ file exists and nonzero exit status otherwise."
5072 (file-exists-p existing) 5072 (file-exists-p existing)
5073 (not (file-exists-p nonexisting)))) 5073 (not (file-exists-p nonexisting))))
5074 (error "Couldn't find command to check if file exists.")))) 5074 (error "Couldn't find command to check if file exists."))))
5075 5075
5076 5076
5077;; CCC test ksh or bash found for tilde expansion? 5077;; CCC test ksh or bash found for tilde expansion?
5078(defun tramp-find-shell (multi-method method user host) 5078(defun tramp-find-shell (multi-method method user host)
@@ -5171,9 +5171,9 @@ Returns nil if none was found, else the command is returned."
5171 (tramp-check-ls-commands multi-method method user host "gnuls" tramp-remote-path) 5171 (tramp-check-ls-commands multi-method method user host "gnuls" tramp-remote-path)
5172 (tramp-check-ls-commands multi-method method user host "gls" tramp-remote-path))) 5172 (tramp-check-ls-commands multi-method method user host "gls" tramp-remote-path)))
5173 5173
5174;; ------------------------------------------------------------ 5174;; ------------------------------------------------------------
5175;; -- Functions for establishing connection -- 5175;; -- Functions for establishing connection --
5176;; ------------------------------------------------------------ 5176;; ------------------------------------------------------------
5177 5177
5178;; The following functions are actions to be taken when seeing certain 5178;; The following functions are actions to be taken when seeing certain
5179;; prompts from the remote host. See the variable 5179;; prompts from the remote host. See the variable
@@ -5422,7 +5422,7 @@ Maybe the different regular expressions need to be tuned.
5422 (when multi-method 5422 (when multi-method
5423 (error "Cannot multi-connect using telnet connection method")) 5423 (error "Cannot multi-connect using telnet connection method"))
5424 (tramp-pre-connection multi-method method user host) 5424 (tramp-pre-connection multi-method method user host)
5425 (tramp-message 7 "Opening connection for %s@%s using %s..." 5425 (tramp-message 7 "Opening connection for %s@%s using %s..."
5426 (or user (user-login-name)) host method) 5426 (or user (user-login-name)) host method)
5427 (let ((process-environment (copy-sequence process-environment))) 5427 (let ((process-environment (copy-sequence process-environment)))
5428 (setenv "TERM" tramp-terminal-type) 5428 (setenv "TERM" tramp-terminal-type)
@@ -5456,7 +5456,7 @@ Maybe the different regular expressions need to be tuned.
5456 p multi-method method user host) 5456 p multi-method method user host)
5457 (tramp-post-connection multi-method method user host))))) 5457 (tramp-post-connection multi-method method user host)))))
5458 5458
5459 5459
5460(defun tramp-open-connection-rsh (multi-method method user host) 5460(defun tramp-open-connection-rsh (multi-method method user host)
5461 "Open a connection using an rsh METHOD. 5461 "Open a connection using an rsh METHOD.
5462This starts the command `rsh HOST -l USER'[*], then waits for a remote 5462This starts the command `rsh HOST -l USER'[*], then waits for a remote
@@ -5481,7 +5481,7 @@ arguments, and xx will be used as the host name to connect to.
5481 (error "Cannot multi-connect using rsh connection method")) 5481 (error "Cannot multi-connect using rsh connection method"))
5482 (tramp-pre-connection multi-method method user host) 5482 (tramp-pre-connection multi-method method user host)
5483 (if (and user (not (string= user ""))) 5483 (if (and user (not (string= user "")))
5484 (tramp-message 7 "Opening connection for %s@%s using %s..." 5484 (tramp-message 7 "Opening connection for %s@%s using %s..."
5485 user host method) 5485 user host method)
5486 (tramp-message 7 "Opening connection at %s using %s..." host method)) 5486 (tramp-message 7 "Opening connection at %s using %s..." host method))
5487 (let ((process-environment (copy-sequence process-environment)) 5487 (let ((process-environment (copy-sequence process-environment))
@@ -5510,9 +5510,9 @@ arguments, and xx will be used as the host name to connect to.
5510 (> emacs-major-version 20)) 5510 (> emacs-major-version 20))
5511 tramp-dos-coding-system)) 5511 tramp-dos-coding-system))
5512 (p (if (and user (not (string= user ""))) 5512 (p (if (and user (not (string= user "")))
5513 (apply #'start-process bufnam buf login-program 5513 (apply #'start-process bufnam buf login-program
5514 real-host "-l" user login-args) 5514 real-host "-l" user login-args)
5515 (apply #'start-process bufnam buf login-program 5515 (apply #'start-process bufnam buf login-program
5516 real-host login-args))) 5516 real-host login-args)))
5517 (found nil)) 5517 (found nil))
5518 (tramp-set-process-query-on-exit-flag p nil) 5518 (tramp-set-process-query-on-exit-flag p nil)
@@ -5582,10 +5582,10 @@ prompt than you do, so it is not at all unlikely that the variable
5582 tramp-actions-before-shell) 5582 tramp-actions-before-shell)
5583 (tramp-open-connection-setup-interactive-shell 5583 (tramp-open-connection-setup-interactive-shell
5584 p multi-method method user host) 5584 p multi-method method user host)
5585 (tramp-post-connection multi-method method 5585 (tramp-post-connection multi-method method
5586 user host))))) 5586 user host)))))
5587 5587
5588;; HHH: Not Changed. Multi method. It is not clear to me how this can 5588;; HHH: Not Changed. Multi method. It is not clear to me how this can
5589;; handle not giving a user name in the "file name". 5589;; handle not giving a user name in the "file name".
5590;; 5590;;
5591;; This is more difficult than for the single-hop method. In the 5591;; This is more difficult than for the single-hop method. In the
@@ -5655,7 +5655,7 @@ log in as u2 to h2."
5655 (tramp-post-connection multi-method method user host))))) 5655 (tramp-post-connection multi-method method user host)))))
5656 5656
5657;; HHH: Changed. Multi method. Don't know how to handle this in the case 5657;; HHH: Changed. Multi method. Don't know how to handle this in the case
5658;; of no user name provided. Hack to make it work as it did before: 5658;; of no user name provided. Hack to make it work as it did before:
5659;; changed `user' to `(or user (user-login-name))' in the places where 5659;; changed `user' to `(or user (user-login-name))' in the places where
5660;; the value is actually used. 5660;; the value is actually used.
5661(defun tramp-multi-connect-telnet (p method user host command) 5661(defun tramp-multi-connect-telnet (p method user host command)
@@ -5677,8 +5677,8 @@ If USER is nil, uses the return value of (user-login-name) instead."
5677 (tramp-process-multi-actions p method user host 5677 (tramp-process-multi-actions p method user host
5678 tramp-multi-actions))) 5678 tramp-multi-actions)))
5679 5679
5680;; HHH: Changed. Multi method. Don't know how to handle this in the case 5680;; HHH: Changed. Multi method. Don't know how to handle this in the case
5681;; of no user name provided. Hack to make it work as it did before: 5681;; of no user name provided. Hack to make it work as it did before:
5682;; changed `user' to `(or user (user-login-name))' in the places where 5682;; changed `user' to `(or user (user-login-name))' in the places where
5683;; the value is actually used. 5683;; the value is actually used.
5684(defun tramp-multi-connect-rlogin (p method user host command) 5684(defun tramp-multi-connect-rlogin (p method user host command)
@@ -5703,8 +5703,8 @@ If USER is nil, uses the return value of (user-login-name) instead."
5703 (tramp-process-multi-actions p method user host 5703 (tramp-process-multi-actions p method user host
5704 tramp-multi-actions))) 5704 tramp-multi-actions)))
5705 5705
5706;; HHH: Changed. Multi method. Don't know how to handle this in the case 5706;; HHH: Changed. Multi method. Don't know how to handle this in the case
5707;; of no user name provided. Hack to make it work as it did before: 5707;; of no user name provided. Hack to make it work as it did before:
5708;; changed `user' to `(or user (user-login-name))' in the places where 5708;; changed `user' to `(or user (user-login-name))' in the places where
5709;; the value is actually used. 5709;; the value is actually used.
5710(defun tramp-multi-connect-su (p method user host command) 5710(defun tramp-multi-connect-su (p method user host command)
@@ -6334,7 +6334,7 @@ Sends COMMAND, then waits 30 seconds for shell prompt."
6334 (tramp-barf-if-no-shell-prompt 6334 (tramp-barf-if-no-shell-prompt
6335 nil 30 6335 nil 30
6336 "Couldn't `%s', see buffer `%s'" command (buffer-name))) 6336 "Couldn't `%s', see buffer `%s'" command (buffer-name)))
6337 6337
6338(defun tramp-wait-for-output (&optional timeout) 6338(defun tramp-wait-for-output (&optional timeout)
6339 "Wait for output from remote rsh command." 6339 "Wait for output from remote rsh command."
6340 (let ((proc (get-buffer-process (current-buffer))) 6340 (let ((proc (get-buffer-process (current-buffer)))
@@ -6667,9 +6667,9 @@ Not actually used. Use `(format \"%o\" i)' instead?"
6667 "")) 6667 ""))
6668 6668
6669 6669
6670;; ------------------------------------------------------------ 6670;; ------------------------------------------------------------
6671;; -- TRAMP file names -- 6671;; -- TRAMP file names --
6672;; ------------------------------------------------------------ 6672;; ------------------------------------------------------------
6673;; Conversion functions between external representation and 6673;; Conversion functions between external representation and
6674;; internal data structure. Convenience functions for internal 6674;; internal data structure. Convenience functions for internal
6675;; data structure. 6675;; data structure.
@@ -6680,7 +6680,7 @@ Not actually used. Use `(format \"%o\" i)' instead?"
6680 "Return t iff NAME is a tramp file." 6680 "Return t iff NAME is a tramp file."
6681 (save-match-data 6681 (save-match-data
6682 (string-match tramp-file-name-regexp name))) 6682 (string-match tramp-file-name-regexp name)))
6683 6683
6684;; HHH: Changed. Used to assign the return value of (user-login-name) 6684;; HHH: Changed. Used to assign the return value of (user-login-name)
6685;; to the `user' part of the structure if a user name was not 6685;; to the `user' part of the structure if a user name was not
6686;; provided, now it assigns nil. 6686;; provided, now it assigns nil.
@@ -6733,7 +6733,7 @@ This is MULTI-METHOD, if non-nil. Otherwise, it is METHOD, if non-nil.
6733If both MULTI-METHOD and METHOD are nil, do a lookup in 6733If both MULTI-METHOD and METHOD are nil, do a lookup in
6734`tramp-default-method-alist'." 6734`tramp-default-method-alist'."
6735 (or multi-method method (tramp-find-default-method user host))) 6735 (or multi-method method (tramp-find-default-method user host)))
6736 6736
6737;; HHH: Not Changed. Multi method. Will probably not handle the case where 6737;; HHH: Not Changed. Multi method. Will probably not handle the case where
6738;; a user name is not provided in the "file name" very well. 6738;; a user name is not provided in the "file name" very well.
6739(defun tramp-dissect-multi-file-name (name) 6739(defun tramp-dissect-multi-file-name (name)
@@ -6905,7 +6905,7 @@ as default."
6905 (if entry 6905 (if entry
6906 (second entry) 6906 (second entry)
6907 (symbol-value param)))) 6907 (symbol-value param))))
6908 6908
6909 6909
6910;; Auto saving to a special directory. 6910;; Auto saving to a special directory.
6911 6911
@@ -6937,7 +6937,7 @@ as default."
6937 (tramp-make-auto-save-file-name (buffer-file-name))) 6937 (tramp-make-auto-save-file-name (buffer-file-name)))
6938 ad-do-it)) 6938 ad-do-it))
6939 6939
6940;; In Emacs < 21.4 and XEmacs < 21.5 autosaved remote files have 6940;; In Emacs < 22.1 and XEmacs < 21.5 autosaved remote files have
6941;; permission 666 minus umask. This is a security threat. 6941;; permission 666 minus umask. This is a security threat.
6942 6942
6943(defun tramp-set-auto-save-file-modes () 6943(defun tramp-set-auto-save-file-modes ()
@@ -7097,9 +7097,9 @@ exiting if process is running."
7097 process flag))) 7097 process flag)))
7098 7098
7099 7099
7100;; ------------------------------------------------------------ 7100;; ------------------------------------------------------------
7101;; -- Kludges section -- 7101;; -- Kludges section --
7102;; ------------------------------------------------------------ 7102;; ------------------------------------------------------------
7103 7103
7104;; Currently (as of Emacs 20.5), the function `shell-quote-argument' 7104;; Currently (as of Emacs 20.5), the function `shell-quote-argument'
7105;; does not deal well with newline characters. Newline is replaced by 7105;; does not deal well with newline characters. Newline is replaced by
@@ -7362,7 +7362,7 @@ report.
7362;; strange when doing zerop, we should kill the process and start 7362;; strange when doing zerop, we should kill the process and start
7363;; again. (Greg Stark) 7363;; again. (Greg Stark)
7364;; * Add caching for filename completion. (Greg Stark) 7364;; * Add caching for filename completion. (Greg Stark)
7365;; Of course, this has issues with usability (stale cache bites) 7365;; Of course, this has issues with usability (stale cache bites)
7366;; -- <daniel@danann.net> 7366;; -- <daniel@danann.net>
7367;; * Provide a local cache of old versions of remote files for the rsync 7367;; * Provide a local cache of old versions of remote files for the rsync
7368;; transfer method to use. (Greg Stark) 7368;; transfer method to use. (Greg Stark)