aboutsummaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
authorDmitry Antipov2013-08-05 08:14:43 +0400
committerDmitry Antipov2013-08-05 08:14:43 +0400
commit8f3a2c2659ddee1ae84b4b8bb28f6c388f87fd0f (patch)
tree36980f65ace0a9492e3a28473a89428d6f45c44f /src/fileio.c
parent3e2cd454fdc04a1afefa23cdfe241c11862eaa8d (diff)
downloademacs-8f3a2c2659ddee1ae84b4b8bb28f6c388f87fd0f.tar.gz
emacs-8f3a2c2659ddee1ae84b4b8bb28f6c388f87fd0f.zip
New macro to iterate over live buffers similar to frames.
* buffer.h (FOR_EACH_LIVE_BUFFER): New macro. (Vbuffer_alist, Qpriority, Qbefore_string, Qafter_string): Declare buffer-related variables here to offload lisp.h. * buffer.c (Vbuffer_alist): Adjust comment. (Fget_file_buffer, get_truename_buffer, Fother_buffer) (other_buffer_safely): * data.c (store_symval_forwarding): * dispnew.c (Fframe_or_buffer_changed_p): * fileio.c (Fdo_auto_save): * filelock.c (unlock_all_files): * minibuf.c (read_minibuf): Use FOR_EACH_LIVE_BUFFER.
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 59e84053773..6b24e592bb3 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -5618,9 +5618,8 @@ A non-nil CURRENT-ONLY argument means save only current buffer. */)
5618 couldn't handle some ange-ftp'd file. */ 5618 couldn't handle some ange-ftp'd file. */
5619 5619
5620 for (do_handled_files = 0; do_handled_files < 2; do_handled_files++) 5620 for (do_handled_files = 0; do_handled_files < 2; do_handled_files++)
5621 for (tail = Vbuffer_alist; CONSP (tail); tail = XCDR (tail)) 5621 FOR_EACH_LIVE_BUFFER (tail, buf)
5622 { 5622 {
5623 buf = XCDR (XCAR (tail));
5624 b = XBUFFER (buf); 5623 b = XBUFFER (buf);
5625 5624
5626 /* Record all the buffers that have auto save mode 5625 /* Record all the buffers that have auto save mode