* lisp/files.el (make-backup-file-name-1): Fix scoping error.
This commit is contained in:
parent
1b351c8a47
commit
ac144dc835
1 changed files with 9 additions and 9 deletions
|
@ -4673,7 +4673,7 @@ The function `find-backup-file-name' also uses this."
|
|||
(if (eq (aref file 2) ?/)
|
||||
""
|
||||
"/")
|
||||
(substring 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...
|
||||
|
@ -4681,7 +4681,7 @@ The function `find-backup-file-name' also uses this."
|
|||
(subst-char-in-string
|
||||
?/ ?!
|
||||
(replace-regexp-in-string "!" "!!" file))
|
||||
backup-directory)))
|
||||
backup-directory))
|
||||
(expand-file-name (file-name-nondirectory file)
|
||||
(file-name-as-directory abs-backup-directory))))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue