diff options
| author | Eli Zaretskii | 2013-11-08 12:21:35 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2013-11-08 12:21:35 +0200 |
| commit | 080db47fc48d9558d11b0b4ac9b55dff625802b6 (patch) | |
| tree | c443f6b219969326798cb2fd92e65222cf5a067f /src/buffer.h | |
| parent | 1606c2d38472f1b95776ce0aa3d07d465db0933e (diff) | |
| download | emacs-080db47fc48d9558d11b0b4ac9b55dff625802b6.tar.gz emacs-080db47fc48d9558d11b0b4ac9b55dff625802b6.zip | |
Switch cache-long-scans to t by default.
src/xdisp.c (message_dolog): Make sure the *Messages* buffer has its
cache-long-scans disabled, since we don't want to call
prepare_to_modify_buffer (in insert_1_both) for each message we
display.
src/buffer.h (bset_cache_long_scans): New INLINE function, moved
from buffer.c. Improve commentary to the buffer field setter
functions.
src/buffer.c (bset_cache_long_scans): Static function deleted.
Improve commentary to the buffer field setter functions.
(init_buffer_once): Default for cache-long-scans changed to t.
(Bug#15797)
Diffstat (limited to 'src/buffer.h')
| -rw-r--r-- | src/buffer.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/buffer.h b/src/buffer.h index a36c0d13c9e..f39e3d33185 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -871,13 +871,19 @@ struct buffer | |||
| 871 | }; | 871 | }; |
| 872 | 872 | ||
| 873 | /* Most code should use these functions to set Lisp fields in struct | 873 | /* Most code should use these functions to set Lisp fields in struct |
| 874 | buffer. */ | 874 | buffer. (Some setters that are priviate to a single .c file are |
| 875 | defined as static in those files.) */ | ||
| 875 | INLINE void | 876 | INLINE void |
| 876 | bset_bidi_paragraph_direction (struct buffer *b, Lisp_Object val) | 877 | bset_bidi_paragraph_direction (struct buffer *b, Lisp_Object val) |
| 877 | { | 878 | { |
| 878 | b->INTERNAL_FIELD (bidi_paragraph_direction) = val; | 879 | b->INTERNAL_FIELD (bidi_paragraph_direction) = val; |
| 879 | } | 880 | } |
| 880 | INLINE void | 881 | INLINE void |
| 882 | bset_cache_long_scans (struct buffer *b, Lisp_Object val) | ||
| 883 | { | ||
| 884 | b->INTERNAL_FIELD (cache_long_scans) = val; | ||
| 885 | } | ||
| 886 | INLINE void | ||
| 881 | bset_case_canon_table (struct buffer *b, Lisp_Object val) | 887 | bset_case_canon_table (struct buffer *b, Lisp_Object val) |
| 882 | { | 888 | { |
| 883 | b->INTERNAL_FIELD (case_canon_table) = val; | 889 | b->INTERNAL_FIELD (case_canon_table) = val; |