From: Richard M. Stallman Date: Tue, 18 Aug 1998 04:49:15 +0000 (+0000) Subject: (ange-ftp-file-name-sans-versions): Don't return X-Git-Tag: emacs-20.3~27 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=85b5a0254674475e1fbd5b51c8ed8b5fa67f3c8e;p=emacs.git (ange-ftp-file-name-sans-versions): Don't return the shortened version of the file name. --- 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))