summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-08-18 04:49:15 +0000
committerRichard M. Stallman <rms@gnu.org>1998-08-18 04:49:15 +0000
commiteb44dcb82c0ed5061f01a00679ba321bcea7da51 (patch)
treee11de9924272720a6ed1636a9fe63fa220fc5893
parent990a086bd21cba059edcc6250a2fe8308843c8fc (diff)
downloademacs-eb44dcb82c0ed5061f01a00679ba321bcea7da51.tar.gz
(ange-ftp-file-name-sans-versions): Don't return
the shortened version of the file name.
-rw-r--r--lisp/ange-ftp.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/ange-ftp.el b/lisp/ange-ftp.el
index fe9bc4492f7..71551fb85f7 100644
--- a/lisp/ange-ftp.el
+++ b/lisp/ange-ftp.el
@@ -4283,9 +4283,9 @@ NEWNAME should be the name to give the new compressed or uncompressed file.")
"Alist of mapping host type into function to remove file version numbers.")
(defun ange-ftp-file-name-sans-versions (file keep-backup-version)
- (setq file (ange-ftp-abbreviate-filename file))
- (let ((parsed (ange-ftp-ftp-name file))
- host-type func)
+ (let* ((short (ange-ftp-abbreviate-filename file))
+ (parsed (ange-ftp-ftp-name short))
+ host-type func)
(if parsed
(setq host-type (ange-ftp-host-type (car parsed))
func (cdr (assq (ange-ftp-host-type (car parsed))