aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2010-11-13 11:42:32 +0100
committerMichael Albinus2010-11-13 11:42:32 +0100
commit6e060cee8186d9fe5ad5f8a783d45f80f9b1bbe3 (patch)
tree3843440633027fd8d45e897316b68f2a5e9e550a
parentea4f775071971a1461b81195af102291bc1ebc10 (diff)
downloademacs-6e060cee8186d9fe5ad5f8a783d45f80f9b1bbe3.tar.gz
emacs-6e060cee8186d9fe5ad5f8a783d45f80f9b1bbe3.zip
* net/tramp-compat.el (tramp-compat-line-beginning-position)
(tramp-compat-line-end-position): Remove them. * net/tramp.el (tramp-parse-rhosts-group) (tramp-parse-shosts-group, tramp-parse-sconfig-group) (tramp-parse-hosts-group, tramp-parse-passwd-group) (tramp-parse-netrc-group, tramp-parse-putty-group) * net/tramp-cmds.el (tramp-append-tramp-buffers) * net/tramp-sh.el (tramp-do-file-attributes-with-ls) (tramp-sh-handle-file-selinux-context) (tramp-sh-handle-file-name-all-completions) (tramp-sh-handle-insert-directory) (tramp-sh-handle-expand-file-name, tramp-find-executable) (tramp-wait-for-output, tramp-send-command-and-read) * net/tramp-smb.el (tramp-smb-read-file-entry) (tramp-smb-get-cifs-capabilities): Use `point-at-eol'. * net/tramp-sh.el (tramp-sh-handle-insert-directory) Use `point-at-bol'. (tramp-remote-coding-commands): Add an alternative using "base64 -d -i". This is needed for older base64 versions from GNU coreutils. Reported by Klaus Reichl <Klaus.Reichl@thalesgroup.com>.
-rw-r--r--lisp/ChangeLog28
-rw-r--r--lisp/net/tramp-cmds.el4
-rw-r--r--lisp/net/tramp-compat.el23
-rw-r--r--lisp/net/tramp-sh.el40
-rw-r--r--lisp/net/tramp-smb.el6
-rw-r--r--lisp/net/tramp.el16
6 files changed, 56 insertions, 61 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5442e0b26da..2e344badb72 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,29 @@
12010-11-13 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp-compat.el (tramp-compat-line-beginning-position)
4 (tramp-compat-line-end-position): Remove them.
5
6 * net/tramp.el (tramp-parse-rhosts-group)
7 (tramp-parse-shosts-group, tramp-parse-sconfig-group)
8 (tramp-parse-hosts-group, tramp-parse-passwd-group)
9 (tramp-parse-netrc-group, tramp-parse-putty-group)
10 * net/tramp-cmds.el (tramp-append-tramp-buffers)
11 * net/tramp-sh.el (tramp-do-file-attributes-with-ls)
12 (tramp-sh-handle-file-selinux-context)
13 (tramp-sh-handle-file-name-all-completions)
14 (tramp-sh-handle-insert-directory)
15 (tramp-sh-handle-expand-file-name, tramp-find-executable)
16 (tramp-wait-for-output, tramp-send-command-and-read)
17 * net/tramp-smb.el (tramp-smb-read-file-entry)
18 (tramp-smb-get-cifs-capabilities): Use `point-at-eol'.
19
20 * net/tramp-sh.el (tramp-sh-handle-insert-directory) Use
21 `point-at-bol'.
22 (tramp-remote-coding-commands): Add an alternative using "base64
23 -d -i". This is needed for older base64 versions from GNU
24 coreutils. Reported by Klaus Reichl
25 <Klaus.Reichl@thalesgroup.com>.
26
12010-11-13 Hrvoje Niksic <hniksic@xemacs.org> 272010-11-13 Hrvoje Niksic <hniksic@xemacs.org>
2 28
3 * simple.el (count-words-region): New function. 29 * simple.el (count-words-region): New function.
@@ -1227,7 +1253,7 @@
1227 1253
1228 * newcomment.el (comment-dwim): Fix the intentation in the doc string. 1254 * newcomment.el (comment-dwim): Fix the intentation in the doc string.
1229 1255
1230010-10-21 Michael Albinus <michael.albinus@gmx.de> 12562010-10-21 Michael Albinus <michael.albinus@gmx.de>
1231 1257
1232 * net/tramp-sh.el (tramp-do-file-attributes-with-stat): Do not use 1258 * net/tramp-sh.el (tramp-do-file-attributes-with-stat): Do not use
1233 space in stat format string. 1259 space in stat format string.
diff --git a/lisp/net/tramp-cmds.el b/lisp/net/tramp-cmds.el
index e6e1bc671e7..f4290f6faf3 100644
--- a/lisp/net/tramp-cmds.el
+++ b/lisp/net/tramp-cmds.el
@@ -298,8 +298,7 @@ buffer in your bug report.
298 (setq buffer-read-only nil) 298 (setq buffer-read-only nil)
299 (goto-char (point-min)) 299 (goto-char (point-min))
300 (while (not (eobp)) 300 (while (not (eobp))
301 (if (re-search-forward 301 (if (re-search-forward tramp-buf-regexp (point-at-eol) t)
302 tramp-buf-regexp (tramp-compat-line-end-position) t)
303 (forward-line 1) 302 (forward-line 1)
304 (forward-line 0) 303 (forward-line 0)
305 (let ((start (point))) 304 (let ((start (point)))
@@ -372,5 +371,4 @@ please ensure that the buffers are attached to your email.\n\n")
372;; ordinary variable that gets its initial value from 371;; ordinary variable that gets its initial value from
373;; tramp-default-user-alist and then is added to. (Pete Forman) 372;; tramp-default-user-alist and then is added to. (Pete Forman)
374 373
375;; arch-tag: 190d4c33-76bb-4e99-8b6f-71741f23d98c
376;;; tramp-cmds.el ends here 374;;; tramp-cmds.el ends here
diff --git a/lisp/net/tramp-compat.el b/lisp/net/tramp-compat.el
index f6f2e116eda..852ee8fa45d 100644
--- a/lisp/net/tramp-compat.el
+++ b/lisp/net/tramp-compat.el
@@ -199,29 +199,6 @@
199 (ignore-errors 199 (ignore-errors
200 (tramp-compat-funcall 'font-lock-add-keywords mode keywords how))) 200 (tramp-compat-funcall 'font-lock-add-keywords mode keywords how)))
201 201
202;; FIXME is this really necessary? Eg Emacs has both l-b-p and p-at-b
203;; since at least 21.1.
204(defsubst tramp-compat-line-beginning-position ()
205 "Return point at beginning of line (compat function).
206Calls `line-beginning-position' or `point-at-bol' if defined, else
207own implementation."
208 (cond
209 ((fboundp 'line-beginning-position)
210 (tramp-compat-funcall 'line-beginning-position))
211 ((fboundp 'point-at-bol) (tramp-compat-funcall 'point-at-bol))
212 (t (save-excursion (beginning-of-line) (point)))))
213
214;; FIXME is this really necessary? Eg Emacs has both l-e-p and p-at-e
215;; since at least 21.1.
216(defsubst tramp-compat-line-end-position ()
217 "Return point at end of line (compat function).
218Calls `line-end-position' or `point-at-eol' if defined, else
219own implementation."
220 (cond
221 ((fboundp 'line-end-position) (tramp-compat-funcall 'line-end-position))
222 ((fboundp 'point-at-eol) (tramp-compat-funcall 'point-at-eol))
223 (t (save-excursion (end-of-line) (point)))))
224
225(defsubst tramp-compat-temporary-file-directory () 202(defsubst tramp-compat-temporary-file-directory ()
226 "Return name of directory for temporary files (compat function). 203 "Return name of directory for temporary files (compat function).
227For Emacs, this is the variable `temporary-file-directory', for XEmacs 204For Emacs, this is the variable `temporary-file-directory', for XEmacs
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 1c25e33d756..5e6cd9577c6 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -1189,8 +1189,7 @@ target of the symlink differ."
1189 ;; if symlink, find out file name pointed to 1189 ;; if symlink, find out file name pointed to
1190 (when symlinkp 1190 (when symlinkp
1191 (search-forward "-> ") 1191 (search-forward "-> ")
1192 (setq res-symlink-target 1192 (setq res-symlink-target (buffer-substring (point) (point-at-eol))))
1193 (buffer-substring (point) (tramp-compat-line-end-position))))
1194 ;; return data gathered 1193 ;; return data gathered
1195 (list 1194 (list
1196 ;; 0. t for directory, string (name linked to) for symbolic 1195 ;; 0. t for directory, string (name linked to) for symbolic
@@ -1438,7 +1437,7 @@ and gid of the corresponding user is taken. Both parameters must be integers."
1438 (tramp-shell-quote-argument localname)))) 1437 (tramp-shell-quote-argument localname))))
1439 (with-current-buffer (tramp-get-connection-buffer v) 1438 (with-current-buffer (tramp-get-connection-buffer v)
1440 (goto-char (point-min)) 1439 (goto-char (point-min))
1441 (when (re-search-forward regexp (tramp-compat-line-end-position) t) 1440 (when (re-search-forward regexp (point-at-eol) t)
1442 (setq context (list (match-string 1) (match-string 2) 1441 (setq context (list (match-string 1) (match-string 2)
1443 (match-string 3) (match-string 4)))))) 1442 (match-string 3) (match-string 4))))))
1444 ;; Return the context. 1443 ;; Return the context.
@@ -1746,8 +1745,7 @@ and gid of the corresponding user is taken. Both parameters must be integers."
1746 (tramp-error 1745 (tramp-error
1747 v 'file-error 1746 v 'file-error
1748 "tramp-sh-handle-file-name-all-completions: %s" 1747 "tramp-sh-handle-file-name-all-completions: %s"
1749 (buffer-substring 1748 (buffer-substring (point) (point-at-eol))))
1750 (point) (tramp-compat-line-end-position))))
1751 ;; For peace of mind, if buffer doesn't end in `fail' 1749 ;; For peace of mind, if buffer doesn't end in `fail'
1752 ;; then it should end in `ok'. If neither are in the 1750 ;; then it should end in `ok'. If neither are in the
1753 ;; buffer something went seriously wrong on the remote 1751 ;; buffer something went seriously wrong on the remote
@@ -1760,9 +1758,7 @@ tramp-sh-handle-file-name-all-completions: internal error accessing `%s': `%s'"
1760 (tramp-shell-quote-argument localname) (buffer-string)))) 1758 (tramp-shell-quote-argument localname) (buffer-string))))
1761 1759
1762 (while (zerop (forward-line -1)) 1760 (while (zerop (forward-line -1))
1763 (push (buffer-substring 1761 (push (buffer-substring (point) (point-at-eol)) result)))
1764 (point) (tramp-compat-line-end-position))
1765 result)))
1766 1762
1767 ;; Because the remote op went through OK we know the 1763 ;; Because the remote op went through OK we know the
1768 ;; directory we `cd'-ed to exists 1764 ;; directory we `cd'-ed to exists
@@ -2524,7 +2520,7 @@ This is like `dired-recursive-delete-directory' for Tramp files."
2524 (forward-line -1)) 2520 (forward-line -1))
2525 (when (looking-at "//DIRED//\\s-+") 2521 (when (looking-at "//DIRED//\\s-+")
2526 (let ((databeg (match-end 0)) 2522 (let ((databeg (match-end 0))
2527 (end (tramp-compat-line-end-position))) 2523 (end (point-at-eol)))
2528 ;; Now read the numeric positions of file names. 2524 ;; Now read the numeric positions of file names.
2529 (goto-char databeg) 2525 (goto-char databeg)
2530 (while (< (point) end) 2526 (while (< (point) end)
@@ -2534,7 +2530,7 @@ This is like `dired-recursive-delete-directory' for Tramp files."
2534 ;; End is followed by \n or by " -> ". 2530 ;; End is followed by \n or by " -> ".
2535 (put-text-property start end 'dired-filename t)))))) 2531 (put-text-property start end 'dired-filename t))))))
2536 ;; Remove trailing lines. 2532 ;; Remove trailing lines.
2537 (goto-char (tramp-compat-line-beginning-position)) 2533 (goto-char (point-at-bol))
2538 (while (looking-at "//") 2534 (while (looking-at "//")
2539 (forward-line 1) 2535 (forward-line 1)
2540 (delete-region (match-beginning 0) (point))) 2536 (delete-region (match-beginning 0) (point)))
@@ -2593,8 +2589,7 @@ the result will be a local, non-Tramp, filename."
2593 v (format "cd %s; pwd" (tramp-shell-quote-argument uname))) 2589 v (format "cd %s; pwd" (tramp-shell-quote-argument uname)))
2594 (with-current-buffer (tramp-get-buffer v) 2590 (with-current-buffer (tramp-get-buffer v)
2595 (goto-char (point-min)) 2591 (goto-char (point-min))
2596 (buffer-substring 2592 (buffer-substring (point) (point-at-eol)))))
2597 (point) (tramp-compat-line-end-position)))))
2598 (setq localname (concat uname fname)))) 2593 (setq localname (concat uname fname))))
2599 ;; There might be a double slash, for example when "~/" 2594 ;; There might be a double slash, for example when "~/"
2600 ;; expands to "/". Remove this. 2595 ;; expands to "/". Remove this.
@@ -3496,8 +3491,7 @@ This function expects to be in the right *tramp* buffer."
3496 (when (search-backward "tramp_executable " nil t) 3491 (when (search-backward "tramp_executable " nil t)
3497 (skip-chars-forward "^ ") 3492 (skip-chars-forward "^ ")
3498 (skip-chars-forward " ") 3493 (skip-chars-forward " ")
3499 (setq result (buffer-substring 3494 (setq result (buffer-substring (point) (point-at-eol)))))
3500 (point) (tramp-compat-line-end-position)))))
3501 result))) 3495 result)))
3502 3496
3503(defun tramp-set-remote-path (vec) 3497(defun tramp-set-remote-path (vec)
@@ -3647,7 +3641,7 @@ process to set up. VEC specifies the connection."
3647 ;; the single quotes makes it work under `rc', too. We also unset 3641 ;; the single quotes makes it work under `rc', too. We also unset
3648 ;; the variable $ENV because that is read by some sh 3642 ;; the variable $ENV because that is read by some sh
3649 ;; implementations (eg, bash when called as sh) on startup; this 3643 ;; implementations (eg, bash when called as sh) on startup; this
3650 ;; way, we avoid the startup file clobbering $PS1. $PROMP_COMMAND 3644 ;; way, we avoid the startup file clobbering $PS1. $PROMPT_COMMAND
3651 ;; is another way to set the prompt in /bin/bash, it must be 3645 ;; is another way to set the prompt in /bin/bash, it must be
3652 ;; discarded as well. 3646 ;; discarded as well.
3653 (tramp-open-shell 3647 (tramp-open-shell
@@ -3858,7 +3852,11 @@ and end of region, and are expected to replace the region contents
3858with the encoded or decoded results, respectively.") 3852with the encoded or decoded results, respectively.")
3859 3853
3860(defconst tramp-remote-coding-commands 3854(defconst tramp-remote-coding-commands
3861 '((b64 "base64" "base64 -d") 3855 '((b64 "base64" "base64 -d -i")
3856 ;; "-i" is more robust with older base64 from GNU coreutils.
3857 ;; However, I don't know whether all base64 versions do supports
3858 ;; this option.
3859 (b64 "base64" "base64 -d")
3862 (b64 "mimencode -b" "mimencode -u -b") 3860 (b64 "mimencode -b" "mimencode -u -b")
3863 (b64 "mmencode -b" "mmencode -u -b") 3861 (b64 "mmencode -b" "mmencode -u -b")
3864 (b64 "recode data..base64" "recode base64..data") 3862 (b64 "recode data..base64" "recode base64..data")
@@ -4360,8 +4358,8 @@ function waits for output unless NOOUTPUT is set."
4360 (tramp-set-connection-property p "check-remote-echo" t) 4358 (tramp-set-connection-property p "check-remote-echo" t)
4361 (setq command (format "%s%s%s" tramp-echo-mark command tramp-echo-mark))) 4359 (setq command (format "%s%s%s" tramp-echo-mark command tramp-echo-mark)))
4362 (when (string-match "<<'EOF'" command) 4360 (when (string-match "<<'EOF'" command)
4363 ;; Unset $PS1 when using here documents, in order not to get 4361 ;; Unset $PS1 when using here documents, in order to avoid
4364 ;; several prompts. 4362 ;; multiple prompts.
4365 (setq command (concat "(PS1= ; " command "\n)"))) 4363 (setq command (concat "(PS1= ; " command "\n)")))
4366 ;; Send the command. 4364 ;; Send the command.
4367 (tramp-message vec 6 "%s" command) 4365 (tramp-message vec 6 "%s" command)
@@ -4387,8 +4385,7 @@ function waits for output unless NOOUTPUT is set."
4387 ;; A simple-minded busybox has sent " ^H" sequences. 4385 ;; A simple-minded busybox has sent " ^H" sequences.
4388 ;; Delete them. 4386 ;; Delete them.
4389 (goto-char (point-min)) 4387 (goto-char (point-min))
4390 (when (re-search-forward 4388 (when (re-search-forward "^\\(.\b\\)+$" (point-at-eol) t)
4391 "^\\(.\b\\)+$" (tramp-compat-line-end-position) t)
4392 (forward-line 1) 4389 (forward-line 1)
4393 (delete-region (point-min) (point))) 4390 (delete-region (point-min) (point)))
4394 ;; Delete the prompt. 4391 ;; Delete the prompt.
@@ -4450,7 +4447,7 @@ In case there is no valid Lisp expression, it raises an error"
4450 (condition-case nil 4447 (condition-case nil
4451 (prog1 (read (current-buffer)) 4448 (prog1 (read (current-buffer))
4452 ;; Error handling. 4449 ;; Error handling.
4453 (when (re-search-forward "\\S-" (tramp-compat-line-end-position) t) 4450 (when (re-search-forward "\\S-" (point-at-eol) t)
4454 (error nil))) 4451 (error nil)))
4455 (error (tramp-error 4452 (error (tramp-error
4456 vec 'file-error 4453 vec 'file-error
@@ -5042,5 +5039,6 @@ function cell is returned to be applied on a buffer."
5042;; rsync. 5039;; rsync.
5043;; * Try telnet+curl as new method. It might be useful for busybox, 5040;; * Try telnet+curl as new method. It might be useful for busybox,
5044;; without built-in uuencode/uudecode. 5041;; without built-in uuencode/uudecode.
5042;; * Try ssh+netcat as out-of-band method.
5045 5043
5046;;; tramp-sh.el ends here 5044;;; tramp-sh.el ends here
diff --git a/lisp/net/tramp-smb.el b/lisp/net/tramp-smb.el
index d2308216821..b3c617ba26c 100644
--- a/lisp/net/tramp-smb.el
+++ b/lisp/net/tramp-smb.el
@@ -1079,7 +1079,7 @@ If SHARE is result, entries are of type dir. Otherwise, shares are listed.
1079Result is the list (LOCALNAME MODE SIZE MTIME)." 1079Result is the list (LOCALNAME MODE SIZE MTIME)."
1080;; We are called from `tramp-smb-get-file-entries', which sets the 1080;; We are called from `tramp-smb-get-file-entries', which sets the
1081;; current buffer. 1081;; current buffer.
1082 (let ((line (buffer-substring (point) (tramp-compat-line-end-position))) 1082 (let ((line (buffer-substring (point) (point-at-eol)))
1083 localname mode size month day hour min sec year mtime) 1083 localname mode size month day hour min sec year mtime)
1084 1084
1085 (if (not share) 1085 (if (not share)
@@ -1177,8 +1177,7 @@ Result is the list (LOCALNAME MODE SIZE MTIME)."
1177 (member 1177 (member
1178 "pathnames" 1178 "pathnames"
1179 (split-string 1179 (split-string
1180 (buffer-substring 1180 (buffer-substring (point) (point-at-eol)) nil t)))))))))
1181 (point) (tramp-compat-line-end-position)) nil t)))))))))
1182 1181
1183(defun tramp-smb-get-stat-capability (vec) 1182(defun tramp-smb-get-stat-capability (vec)
1184 "Check, whether the SMB server supports the STAT command." 1183 "Check, whether the SMB server supports the STAT command."
@@ -1396,5 +1395,4 @@ Returns nil if an error message has appeared."
1396;; regular again. 1395;; regular again.
1397;; * Make it multi-hop capable. 1396;; * Make it multi-hop capable.
1398 1397
1399;; arch-tag: fcc9dbec-7503-4d73-b638-3c8aa59575f5
1400;;; tramp-smb.el ends here 1398;;; tramp-smb.el ends here
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index e5ebe81ce29..2f8eb4dff97 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -2352,7 +2352,7 @@ Either user or host may be nil."
2352 (concat 2352 (concat
2353 "^\\(" tramp-host-regexp "\\)" 2353 "^\\(" tramp-host-regexp "\\)"
2354 "\\([ \t]+" "\\(" tramp-user-regexp "\\)" "\\)?"))) 2354 "\\([ \t]+" "\\(" tramp-user-regexp "\\)" "\\)?")))
2355 (narrow-to-region (point) (tramp-compat-line-end-position)) 2355 (narrow-to-region (point) (point-at-eol))
2356 (when (re-search-forward regexp nil t) 2356 (when (re-search-forward regexp nil t)
2357 (setq result (append (list (match-string 3) (match-string 1))))) 2357 (setq result (append (list (match-string 3) (match-string 1)))))
2358 (widen) 2358 (widen)
@@ -2379,7 +2379,7 @@ User is always nil."
2379User is always nil." 2379User is always nil."
2380 (let ((result) 2380 (let ((result)
2381 (regexp (concat "^\\(" tramp-host-regexp "\\)"))) 2381 (regexp (concat "^\\(" tramp-host-regexp "\\)")))
2382 (narrow-to-region (point) (tramp-compat-line-end-position)) 2382 (narrow-to-region (point) (point-at-eol))
2383 (when (re-search-forward regexp nil t) 2383 (when (re-search-forward regexp nil t)
2384 (setq result (list nil (match-string 1)))) 2384 (setq result (list nil (match-string 1))))
2385 (widen) 2385 (widen)
@@ -2408,7 +2408,7 @@ User is always nil."
2408User is always nil." 2408User is always nil."
2409 (let ((result) 2409 (let ((result)
2410 (regexp (concat "^[ \t]*Host[ \t]+" "\\(" tramp-host-regexp "\\)"))) 2410 (regexp (concat "^[ \t]*Host[ \t]+" "\\(" tramp-host-regexp "\\)")))
2411 (narrow-to-region (point) (tramp-compat-line-end-position)) 2411 (narrow-to-region (point) (point-at-eol))
2412 (when (re-search-forward regexp nil t) 2412 (when (re-search-forward regexp nil t)
2413 (setq result (list nil (match-string 1)))) 2413 (setq result (list nil (match-string 1))))
2414 (widen) 2414 (widen)
@@ -2469,7 +2469,7 @@ User is always nil."
2469 (let ((result) 2469 (let ((result)
2470 (regexp 2470 (regexp
2471 (concat "^\\(" tramp-ipv6-regexp "\\|" tramp-host-regexp "\\)"))) 2471 (concat "^\\(" tramp-ipv6-regexp "\\|" tramp-host-regexp "\\)")))
2472 (narrow-to-region (point) (tramp-compat-line-end-position)) 2472 (narrow-to-region (point) (point-at-eol))
2473 (when (re-search-forward regexp nil t) 2473 (when (re-search-forward regexp nil t)
2474 (setq result (list nil (match-string 1)))) 2474 (setq result (list nil (match-string 1))))
2475 (widen) 2475 (widen)
@@ -2504,7 +2504,7 @@ Host is always \"localhost\"."
2504Host is always \"localhost\"." 2504Host is always \"localhost\"."
2505 (let ((result) 2505 (let ((result)
2506 (regexp (concat "^\\(" tramp-user-regexp "\\):"))) 2506 (regexp (concat "^\\(" tramp-user-regexp "\\):")))
2507 (narrow-to-region (point) (tramp-compat-line-end-position)) 2507 (narrow-to-region (point) (point-at-eol))
2508 (when (re-search-forward regexp nil t) 2508 (when (re-search-forward regexp nil t)
2509 (setq result (list (match-string 1) "localhost"))) 2509 (setq result (list (match-string 1) "localhost")))
2510 (widen) 2510 (widen)
@@ -2534,7 +2534,7 @@ User may be nil."
2534 (concat 2534 (concat
2535 "^[ \t]*machine[ \t]+" "\\(" tramp-host-regexp "\\)" 2535 "^[ \t]*machine[ \t]+" "\\(" tramp-host-regexp "\\)"
2536 "\\([ \t]+login[ \t]+" "\\(" tramp-user-regexp "\\)" "\\)?"))) 2536 "\\([ \t]+login[ \t]+" "\\(" tramp-user-regexp "\\)" "\\)?")))
2537 (narrow-to-region (point) (tramp-compat-line-end-position)) 2537 (narrow-to-region (point) (point-at-eol))
2538 (when (re-search-forward regexp nil t) 2538 (when (re-search-forward regexp nil t)
2539 (setq result (list (match-string 3) (match-string 1)))) 2539 (setq result (list (match-string 3) (match-string 1))))
2540 (widen) 2540 (widen)
@@ -2560,7 +2560,7 @@ User is always nil."
2560User is always nil." 2560User is always nil."
2561 (let ((result) 2561 (let ((result)
2562 (regexp (concat (regexp-quote registry) "\\\\\\(.+\\)"))) 2562 (regexp (concat (regexp-quote registry) "\\\\\\(.+\\)")))
2563 (narrow-to-region (point) (tramp-compat-line-end-position)) 2563 (narrow-to-region (point) (point-at-eol))
2564 (when (re-search-forward regexp nil t) 2564 (when (re-search-forward regexp nil t)
2565 (setq result (list nil (match-string 1)))) 2565 (setq result (list nil (match-string 1))))
2566 (widen) 2566 (widen)
@@ -3662,7 +3662,6 @@ Only works for Bourne-like shells."
3662;; expects English? Or just to set LC_MESSAGES to "C" if Tramp 3662;; expects English? Or just to set LC_MESSAGES to "C" if Tramp
3663;; expects only English messages? (Juri Linkov) 3663;; expects only English messages? (Juri Linkov)
3664;; * Make shadowfile.el grok Tramp filenames. (Bug#4526, Bug#4846) 3664;; * Make shadowfile.el grok Tramp filenames. (Bug#4526, Bug#4846)
3665;; * Load ~/.emacs_SHELLNAME on the remote host for `shell'.
3666;; * I was wondering it it would be possible to use tramp even if I'm 3665;; * I was wondering it it would be possible to use tramp even if I'm
3667;; actually using sshfs. But when I launch a command I would like 3666;; actually using sshfs. But when I launch a command I would like
3668;; to get it executed on the remote machine where the files really 3667;; to get it executed on the remote machine where the files really
@@ -3674,7 +3673,6 @@ Only works for Bourne-like shells."
3674;; Functions for file-name-handler-alist: 3673;; Functions for file-name-handler-alist:
3675;; diff-latest-backup-file -- in diff.el 3674;; diff-latest-backup-file -- in diff.el
3676 3675
3677;; arch-tag: 3a21a994-182b-48fa-b0cd-c1d9fede424a
3678;;; tramp.el ends here 3676;;; tramp.el ends here
3679 3677
3680;; Local Variables: 3678;; Local Variables: