diff options
| author | Michael Albinus | 2013-01-29 09:12:11 +0100 |
|---|---|---|
| committer | Michael Albinus | 2013-01-29 09:12:11 +0100 |
| commit | 1b69262a7d0bbe6edf7c8c524c9cb11d4ea05177 (patch) | |
| tree | a0dbb5ebd4e0bda31546f7e69f185cda722f7dae | |
| parent | b2dc4f52e73593ec205c30324247b56257842b77 (diff) | |
| download | emacs-1b69262a7d0bbe6edf7c8c524c9cb11d4ea05177.tar.gz emacs-1b69262a7d0bbe6edf7c8c524c9cb11d4ea05177.zip | |
* net/ange-ftp.el (ange-ftp-skip-msgs): Add another message.
* net/tramp-sh.el (tramp-sh-handle-start-file-process): Catch
`suppress'. Otherwise, `tramp-run-real-handler' might be called
in `tramp-file-name-handler'.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/net/ange-ftp.el | 1 | ||||
| -rw-r--r-- | lisp/net/tramp-sh.el | 71 |
3 files changed, 46 insertions, 34 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 01fb7223226..9a449498a5d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2013-01-29 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/ange-ftp.el (ange-ftp-skip-msgs): Add another message. | ||
| 4 | |||
| 5 | * net/tramp-sh.el (tramp-sh-handle-start-file-process): Catch | ||
| 6 | `suppress'. Otherwise, `tramp-run-real-handler' might be called | ||
| 7 | in `tramp-file-name-handler'. | ||
| 8 | |||
| 1 | 2013-01-28 Stefan Monnier <monnier@iro.umontreal.ca> | 9 | 2013-01-28 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 10 | ||
| 3 | * hi-lock.el (hi-lock-unface-buffer): Don't assume `face' is a symbol | 11 | * hi-lock.el (hi-lock-unface-buffer): Don't assume `face' is a symbol |
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el index bf6afae45da..4f7d8092891 100644 --- a/lisp/net/ange-ftp.el +++ b/lisp/net/ange-ftp.el | |||
| @@ -720,6 +720,7 @@ parenthesized expressions in REGEXP for the components (in that order)." | |||
| 720 | "^Data connection \\|" | 720 | "^Data connection \\|" |
| 721 | "^local:\\|^Trying\\|^125 \\|^550-\\|^221 .*oodbye\\|" | 721 | "^local:\\|^Trying\\|^125 \\|^550-\\|^221 .*oodbye\\|" |
| 722 | "^500 .*AUTH\\|^KERBEROS\\|" | 722 | "^500 .*AUTH\\|^KERBEROS\\|" |
| 723 | "^500 This security scheme is not implemented\\|" | ||
| 723 | "^504 Unknown security mechanism\\|" | 724 | "^504 Unknown security mechanism\\|" |
| 724 | "^530 Please login with USER and PASS\\|" ; non kerberized vsFTPd | 725 | "^530 Please login with USER and PASS\\|" ; non kerberized vsFTPd |
| 725 | "^534 Kerberos Authentication not enabled\\|" | 726 | "^534 Kerberos Authentication not enabled\\|" |
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 21c747967af..bb4224540f8 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -2824,40 +2824,43 @@ the result will be a local, non-Tramp, filename." | |||
| 2824 | 2824 | ||
| 2825 | (with-current-buffer (tramp-get-connection-buffer v) | 2825 | (with-current-buffer (tramp-get-connection-buffer v) |
| 2826 | (unwind-protect | 2826 | (unwind-protect |
| 2827 | (save-excursion | 2827 | ;; We catch this event. Otherwise, `start-process' could |
| 2828 | (save-restriction | 2828 | ;; be called on the local host. |
| 2829 | ;; Activate narrowing in order to save BUFFER | 2829 | (catch 'suppress |
| 2830 | ;; contents. Clear also the modification time; | 2830 | (save-excursion |
| 2831 | ;; otherwise we might be interrupted by | 2831 | (save-restriction |
| 2832 | ;; `verify-visited-file-modtime'. | 2832 | ;; Activate narrowing in order to save BUFFER |
| 2833 | (let ((buffer-undo-list t) | 2833 | ;; contents. Clear also the modification time; |
| 2834 | (buffer-read-only nil) | 2834 | ;; otherwise we might be interrupted by |
| 2835 | (mark (point))) | 2835 | ;; `verify-visited-file-modtime'. |
| 2836 | (clear-visited-file-modtime) | 2836 | (let ((buffer-undo-list t) |
| 2837 | (narrow-to-region (point-max) (point-max)) | 2837 | (buffer-read-only nil) |
| 2838 | ;; We call `tramp-maybe-open-connection', in order | 2838 | (mark (point))) |
| 2839 | ;; to cleanup the prompt afterwards. | 2839 | (clear-visited-file-modtime) |
| 2840 | (tramp-maybe-open-connection v) | 2840 | (narrow-to-region (point-max) (point-max)) |
| 2841 | (widen) | 2841 | ;; We call `tramp-maybe-open-connection', in order |
| 2842 | (delete-region mark (point)) | 2842 | ;; to cleanup the prompt afterwards. |
| 2843 | (narrow-to-region (point-max) (point-max)) | 2843 | (tramp-maybe-open-connection v) |
| 2844 | ;; Now do it. | 2844 | (widen) |
| 2845 | (if command | 2845 | (delete-region mark (point)) |
| 2846 | ;; Send the command. | 2846 | (narrow-to-region (point-max) (point-max)) |
| 2847 | (tramp-send-command v command nil t) ; nooutput | 2847 | ;; Now do it. |
| 2848 | ;; Check, whether a pty is associated. | 2848 | (if command |
| 2849 | (unless (tramp-compat-process-get | 2849 | ;; Send the command. |
| 2850 | (tramp-get-connection-process v) 'remote-tty) | 2850 | (tramp-send-command v command nil t) ; nooutput |
| 2851 | (tramp-error | 2851 | ;; Check, whether a pty is associated. |
| 2852 | v 'file-error | 2852 | (unless (tramp-compat-process-get |
| 2853 | "pty association is not supported for `%s'" name)))) | 2853 | (tramp-get-connection-process v) 'remote-tty) |
| 2854 | (let ((p (tramp-get-connection-process v))) | 2854 | (tramp-error |
| 2855 | ;; Set query flag for this process. We ignore errors, | 2855 | v 'file-error |
| 2856 | ;; because the process could have finished already. | 2856 | "pty association is not supported for `%s'" name)))) |
| 2857 | (ignore-errors | 2857 | (let ((p (tramp-get-connection-process v))) |
| 2858 | (tramp-compat-set-process-query-on-exit-flag p t)) | 2858 | ;; Set query flag for this process. We ignore errors, |
| 2859 | ;; Return process. | 2859 | ;; because the process could have finished already. |
| 2860 | p))) | 2860 | (ignore-errors |
| 2861 | (tramp-compat-set-process-query-on-exit-flag p t)) | ||
| 2862 | ;; Return process. | ||
| 2863 | p)))) | ||
| 2861 | 2864 | ||
| 2862 | ;; Save exit. | 2865 | ;; Save exit. |
| 2863 | (if (string-match tramp-temp-buffer-name (buffer-name)) | 2866 | (if (string-match tramp-temp-buffer-name (buffer-name)) |