(ange-ftp-gwp-filter): Go to process buffer before getting text from it.
This commit is contained in:
parent
9b842cab49
commit
6d766abc91
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue