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/buffer.c | |
parent | 75f8653bfe0da39acca9dbcb8b021ad033ac6ae9 (diff) | |
download | emacs-d90a3b186d57ac700a32988b720f76f289740ece.tar.gz |
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/buffer.c')
-rw-r--r-- | src/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c index c78d08c53d2..13843a2ac4d 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1666,8 +1666,8 @@ cleaning up all windows currently displaying the buffer to be killed. */) && BUF_MODIFF (b) > BUF_SAVE_MODIFF (b)) { GCPRO1 (buffer); - tem = do_yes_or_no_p (format2 ("Buffer %s modified; kill anyway? ", - BVAR (b, name), make_number (0))); + AUTO_STRING (format, "Buffer %s modified; kill anyway? "); + tem = do_yes_or_no_p (CALLN (Fformat, format, BVAR (b, name))); UNGCPRO; if (NILP (tem)) return unbind_to (count, Qnil); |