diff options
| author | Dmitry Antipov | 2013-08-05 08:14:43 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-08-05 08:14:43 +0400 |
| commit | 8f3a2c2659ddee1ae84b4b8bb28f6c388f87fd0f (patch) | |
| tree | 36980f65ace0a9492e3a28473a89428d6f45c44f /src/lisp.h | |
| parent | 3e2cd454fdc04a1afefa23cdfe241c11862eaa8d (diff) | |
| download | emacs-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/lisp.h')
| -rw-r--r-- | src/lisp.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lisp.h b/src/lisp.h index 5daddb7d335..085acb54348 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -734,6 +734,7 @@ extern Lisp_Object Qarrayp, Qbufferp, Qbuffer_or_string_p, Qchar_table_p; | |||
| 734 | extern Lisp_Object Qconsp, Qfloatp, Qintegerp, Qlambda, Qlistp, Qmarkerp, Qnil; | 734 | extern Lisp_Object Qconsp, Qfloatp, Qintegerp, Qlambda, Qlistp, Qmarkerp, Qnil; |
| 735 | extern Lisp_Object Qnumberp, Qstringp, Qsymbolp, Qvectorp; | 735 | extern Lisp_Object Qnumberp, Qstringp, Qsymbolp, Qvectorp; |
| 736 | extern Lisp_Object Qvector_or_char_table_p, Qwholenump; | 736 | extern Lisp_Object Qvector_or_char_table_p, Qwholenump; |
| 737 | extern Lisp_Object Qwindow; | ||
| 737 | extern Lisp_Object Ffboundp (Lisp_Object); | 738 | extern Lisp_Object Ffboundp (Lisp_Object); |
| 738 | extern _Noreturn Lisp_Object wrong_type_argument (Lisp_Object, Lisp_Object); | 739 | extern _Noreturn Lisp_Object wrong_type_argument (Lisp_Object, Lisp_Object); |
| 739 | 740 | ||
| @@ -3797,9 +3798,7 @@ extern void fix_start_end_in_overlays (ptrdiff_t, ptrdiff_t); | |||
| 3797 | extern void report_overlay_modification (Lisp_Object, Lisp_Object, bool, | 3798 | extern void report_overlay_modification (Lisp_Object, Lisp_Object, bool, |
| 3798 | Lisp_Object, Lisp_Object, Lisp_Object); | 3799 | Lisp_Object, Lisp_Object, Lisp_Object); |
| 3799 | extern bool overlay_touches_p (ptrdiff_t); | 3800 | extern bool overlay_touches_p (ptrdiff_t); |
| 3800 | extern Lisp_Object Vbuffer_alist; | ||
| 3801 | extern Lisp_Object other_buffer_safely (Lisp_Object); | 3801 | extern Lisp_Object other_buffer_safely (Lisp_Object); |
| 3802 | extern Lisp_Object Qpriority, Qwindow, Qbefore_string, Qafter_string; | ||
| 3803 | extern Lisp_Object get_truename_buffer (Lisp_Object); | 3802 | extern Lisp_Object get_truename_buffer (Lisp_Object); |
| 3804 | extern void init_buffer_once (void); | 3803 | extern void init_buffer_once (void); |
| 3805 | extern void init_buffer (void); | 3804 | extern void init_buffer (void); |