]> git.eshelyaron.com Git - emacs.git/commitdiff
(ange-ftp-gwp-filter): Go to process buffer before getting text from it.
authorRichard M. Stallman <rms@gnu.org>
Wed, 6 Sep 1995 18:17:59 +0000 (18:17 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 6 Sep 1995 18:17:59 +0000 (18:17 +0000)
lisp/ange-ftp.el

index 87af1adedaaeeb01476171377a7b60fde2b01305..b2824d02bd261141be301609e9e28076b2f93d65 100644 (file)
@@ -1601,8 +1601,10 @@ good, skip, fatal, or unknown."
 
 (defun ange-ftp-gwp-filter (proc str)
   (comint-output-filter proc str)
-  ;; Replace STR by the result of the comint processing.
-  (setq str (buffer-substring comint-last-output-start (process-mark proc)))
+  (save-excursion
+    (set-buffer (process-buffer proc))
+    ;; Replace STR by the result of the comint processing.
+    (setq str (buffer-substring comint-last-output-start (process-mark proc))))
   (cond ((string-match "login: *$" str)
         (send-string proc
                      (concat