summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-08-13 18:29:36 +0000
committerRichard M. Stallman <rms@gnu.org>1996-08-13 18:29:36 +0000
commit2759c3c23045bce34c14f6e9d77fd47ebbac9a30 (patch)
tree32ea795b0d4d07bd91dcc0a705573a9a8a9abba1
parent59bbfe45b8f4c40b754b4e3c38d627048665846a (diff)
downloademacs-2759c3c23045bce34c14f6e9d77fd47ebbac9a30.tar.gz
(ange-ftp-kill-ftp-process): Handle buffer name as arg.
-rw-r--r--lisp/ange-ftp.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ange-ftp.el b/lisp/ange-ftp.el
index d0dae527cc9..6174ce70c9c 100644
--- a/lisp/ange-ftp.el
+++ b/lisp/ange-ftp.el
@@ -1367,7 +1367,8 @@ If the BUFFER's visited filename or default-directory is an ftp filename
then kill the related ftp process."
(interactive "bKill FTP process associated with buffer: ")
(if (null buffer)
- (setq buffer (current-buffer)))
+ (setq buffer (current-buffer))
+ (setq buffer (get-buffer buffer)))
(let ((file (or (buffer-file-name buffer)
(save-excursion (set-buffer buffer) default-directory))))
(if file