diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2015-05-30 15:29:41 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2015-05-30 15:30:47 -0700 |
commit | d90a3b186d57ac700a32988b720f76f289740ece (patch) | |
tree | ca4a9bef4c9ba6bc7f03d02766d1c09247763994 /src/fileio.c | |
parent | 75f8653bfe0da39acca9dbcb8b021ad033ac6ae9 (diff) | |
download | emacs-d90a3b186d57ac700a32988b720f76f289740ece.tar.gz emacs-d90a3b186d57ac700a32988b720f76f289740ece.tar.bz2 emacs-d90a3b186d57ac700a32988b720f76f289740ece.zip |
Remove format2
* src/editfns.c, src/lisp.h (format2): Remove.
It is more trouble than it's worth, now that we have CALLN.
This is just a minor refactoring.
* src/buffer.c (Fkill_buffer):
* src/dbusbind.c (XD_OBJECT_TO_STRING):
* src/fileio.c (barf_or_query_if_file_exists):
Adjust to format2 going away.
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c index a969d3b2c0f..f0f862a4344 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -1811,8 +1811,8 @@ barf_or_query_if_file_exists (Lisp_Object absname, bool known_to_exist, xsignal2 (Qfile_already_exists, build_string ("File already exists"), absname); GCPRO1 (absname); - tem = format2 ("File %s already exists; %s anyway? ", - absname, build_string (querystring)); + AUTO_STRING (format, "File %s already exists; %s anyway? "); + tem = CALLN (Fformat, format, absname, build_string (querystring)); if (quick) tem = call1 (intern ("y-or-n-p"), tem); else |