Mercurial > emacs
changeset 11222:8781025a1418
(write-file): Fix arg count in call to y-or-n-p.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Thu, 06 Apr 1995 19:25:20 +0000 |
parents | 254a5316fc98 |
children | cf940edd7667 |
files | lisp/files.el |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/files.el Thu Apr 06 18:57:58 1995 +0000 +++ b/lisp/files.el Thu Apr 06 19:25:20 1995 +0000 @@ -1354,7 +1354,7 @@ (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)