mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-01 08:17:38 +00:00
* lisp/files.el (make-backup-file-name-1): Fix scoping error.
This commit is contained in:
parent
1b351c8a47
commit
ac144dc835
@ -4673,15 +4673,15 @@ The function `find-backup-file-name' also uses this."
|
||||
(if (eq (aref file 2) ?/)
|
||||
""
|
||||
"/")
|
||||
(substring file 2))))))
|
||||
;; Make the name unique by substituting directory
|
||||
;; separators. It may not really be worth bothering about
|
||||
;; doubling `!'s in the original name...
|
||||
(expand-file-name
|
||||
(subst-char-in-string
|
||||
?/ ?!
|
||||
(replace-regexp-in-string "!" "!!" file))
|
||||
backup-directory)))
|
||||
(substring file 2)))))))
|
||||
;; Make the name unique by substituting directory
|
||||
;; separators. It may not really be worth bothering about
|
||||
;; doubling `!'s in the original name...
|
||||
(expand-file-name
|
||||
(subst-char-in-string
|
||||
?/ ?!
|
||||
(replace-regexp-in-string "!" "!!" file))
|
||||
backup-directory))
|
||||
(expand-file-name (file-name-nondirectory file)
|
||||
(file-name-as-directory abs-backup-directory))))))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user