]> git.eshelyaron.com Git - emacs.git/commitdiff
* net/ange-ftp.el (ange-ftp-skip-msgs): Add another message.
authorMichael Albinus <michael.albinus@gmx.de>
Tue, 29 Jan 2013 08:12:11 +0000 (09:12 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Tue, 29 Jan 2013 08:12:11 +0000 (09:12 +0100)
* 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'.

lisp/ChangeLog
lisp/net/ange-ftp.el
lisp/net/tramp-sh.el

index 01fb72232267515b52c17e16e8573414434ab9ca..9a449498a5d746b963feecca836381caaed43d1d 100644 (file)
@@ -1,3 +1,11 @@
+2013-01-29  Michael Albinus  <michael.albinus@gmx.de>
+
+       * 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'.
+
 2013-01-28  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * hi-lock.el (hi-lock-unface-buffer): Don't assume `face' is a symbol
index bf6afae45daa63eb5c186b33bdd585a1589faf7f..4f7d80928915b109686ba244b4a81f647c93a3a9 100644 (file)
@@ -720,6 +720,7 @@ parenthesized expressions in REGEXP for the components (in that order)."
          "^Data connection \\|"
          "^local:\\|^Trying\\|^125 \\|^550-\\|^221 .*oodbye\\|"
           "^500 .*AUTH\\|^KERBEROS\\|"
+          "^500 This security scheme is not implemented\\|"
           "^504 Unknown security mechanism\\|"
          "^530 Please login with USER and PASS\\|" ; non kerberized vsFTPd
          "^534 Kerberos Authentication not enabled\\|"
index 21c747967af47fa037a4fc4e40d9a562a33f534a..bb4224540f8460680abb177c1127c6a19fb006b8 100644 (file)
@@ -2824,40 +2824,43 @@ the result will be a local, non-Tramp, filename."
 
       (with-current-buffer (tramp-get-connection-buffer v)
        (unwind-protect
-           (save-excursion
-             (save-restriction
-               ;; Activate narrowing in order to save BUFFER
-               ;; contents.  Clear also the modification time;
-               ;; otherwise we might be interrupted by
-               ;; `verify-visited-file-modtime'.
-               (let ((buffer-undo-list t)
-                     (buffer-read-only nil)
-                     (mark (point)))
-                 (clear-visited-file-modtime)
-                 (narrow-to-region (point-max) (point-max))
-                 ;; We call `tramp-maybe-open-connection', in order
-                 ;; to cleanup the prompt afterwards.
-                 (tramp-maybe-open-connection v)
-                 (widen)
-                 (delete-region mark (point))
-                 (narrow-to-region (point-max) (point-max))
-                 ;; Now do it.
-                 (if command
-                     ;; Send the command.
-                     (tramp-send-command v command nil t) ; nooutput
-                   ;; Check, whether a pty is associated.
-                   (unless (tramp-compat-process-get
-                            (tramp-get-connection-process v) 'remote-tty)
-                     (tramp-error
-                      v 'file-error
-                      "pty association is not supported for `%s'" name))))
-               (let ((p (tramp-get-connection-process v)))
-                 ;; Set query flag for this process.  We ignore errors,
-                 ;; because the process could have finished already.
-                 (ignore-errors
-                   (tramp-compat-set-process-query-on-exit-flag p t))
-                 ;; Return process.
-                 p)))
+           ;; We catch this event.  Otherwise, `start-process' could
+           ;; be called on the local host.
+           (catch 'suppress
+             (save-excursion
+               (save-restriction
+                 ;; Activate narrowing in order to save BUFFER
+                 ;; contents.  Clear also the modification time;
+                 ;; otherwise we might be interrupted by
+                 ;; `verify-visited-file-modtime'.
+                 (let ((buffer-undo-list t)
+                       (buffer-read-only nil)
+                       (mark (point)))
+                   (clear-visited-file-modtime)
+                   (narrow-to-region (point-max) (point-max))
+                   ;; We call `tramp-maybe-open-connection', in order
+                   ;; to cleanup the prompt afterwards.
+                   (tramp-maybe-open-connection v)
+                   (widen)
+                   (delete-region mark (point))
+                   (narrow-to-region (point-max) (point-max))
+                   ;; Now do it.
+                   (if command
+                       ;; Send the command.
+                       (tramp-send-command v command nil t) ; nooutput
+                     ;; Check, whether a pty is associated.
+                     (unless (tramp-compat-process-get
+                              (tramp-get-connection-process v) 'remote-tty)
+                       (tramp-error
+                        v 'file-error
+                        "pty association is not supported for `%s'" name))))
+                 (let ((p (tramp-get-connection-process v)))
+                   ;; Set query flag for this process.  We ignore errors,
+                   ;; because the process could have finished already.
+                   (ignore-errors
+                     (tramp-compat-set-process-query-on-exit-flag p t))
+                   ;; Return process.
+                   p))))
 
          ;; Save exit.
          (if (string-match tramp-temp-buffer-name (buffer-name))