mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-26 07:33:47 +00:00
(write-file): Fix arg count in call to y-or-n-p.
This commit is contained in:
parent
8843589021
commit
4891222c9e
@ -1354,7 +1354,7 @@ old name in that directory."
|
||||
(setq filename (concat (file-name-as-directory filename)
|
||||
(file-name-nondirectory buffer-file-name))))
|
||||
(if (file-exists-p filename)
|
||||
(or (y-or-n-p "File `%s' exists; overwrite? " filename)
|
||||
(or (y-or-n-p (format "File `%s' exists; overwrite? " filename))
|
||||
(error "Canceled")))
|
||||
(set-visited-file-name filename)))
|
||||
(set-buffer-modified-p t)
|
||||
|
Loading…
Reference in New Issue
Block a user