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.c | |
| 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.c')
| -rw-r--r-- | src/buffer.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/buffer.c b/src/buffer.c index d3288ad0429..7a424ffd901 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -154,7 +154,8 @@ CHECK_OVERLAY (Lisp_Object x) | |||
| 154 | CHECK_TYPE (OVERLAYP (x), Qoverlayp, x); | 154 | CHECK_TYPE (OVERLAYP (x), Qoverlayp, x); |
| 155 | } | 155 | } |
| 156 | 156 | ||
| 157 | /* These setters are used only in this file, so they can be private. */ | 157 | /* These setters are used only in this file, so they can be private. |
| 158 | The public setters are inline functions defined in buffer.h. */ | ||
| 158 | static void | 159 | static void |
| 159 | bset_abbrev_mode (struct buffer *b, Lisp_Object val) | 160 | bset_abbrev_mode (struct buffer *b, Lisp_Object val) |
| 160 | { | 161 | { |
| @@ -201,11 +202,6 @@ bset_buffer_file_coding_system (struct buffer *b, Lisp_Object val) | |||
| 201 | b->INTERNAL_FIELD (buffer_file_coding_system) = val; | 202 | b->INTERNAL_FIELD (buffer_file_coding_system) = val; |
| 202 | } | 203 | } |
| 203 | static void | 204 | static void |
| 204 | bset_cache_long_scans (struct buffer *b, Lisp_Object val) | ||
| 205 | { | ||
| 206 | b->INTERNAL_FIELD (cache_long_scans) = val; | ||
| 207 | } | ||
| 208 | static void | ||
| 209 | bset_case_fold_search (struct buffer *b, Lisp_Object val) | 205 | bset_case_fold_search (struct buffer *b, Lisp_Object val) |
| 210 | { | 206 | { |
| 211 | b->INTERNAL_FIELD (case_fold_search) = val; | 207 | b->INTERNAL_FIELD (case_fold_search) = val; |
| @@ -5185,7 +5181,7 @@ init_buffer_once (void) | |||
| 5185 | bset_buffer_file_coding_system (&buffer_defaults, Qnil); | 5181 | bset_buffer_file_coding_system (&buffer_defaults, Qnil); |
| 5186 | XSETFASTINT (BVAR (&buffer_defaults, fill_column), 70); | 5182 | XSETFASTINT (BVAR (&buffer_defaults, fill_column), 70); |
| 5187 | XSETFASTINT (BVAR (&buffer_defaults, left_margin), 0); | 5183 | XSETFASTINT (BVAR (&buffer_defaults, left_margin), 0); |
| 5188 | bset_cache_long_scans (&buffer_defaults, Qnil); | 5184 | bset_cache_long_scans (&buffer_defaults, Qt); |
| 5189 | bset_file_truename (&buffer_defaults, Qnil); | 5185 | bset_file_truename (&buffer_defaults, Qnil); |
| 5190 | XSETFASTINT (BVAR (&buffer_defaults, display_count), 0); | 5186 | XSETFASTINT (BVAR (&buffer_defaults, display_count), 0); |
| 5191 | XSETFASTINT (BVAR (&buffer_defaults, left_margin_cols), 0); | 5187 | XSETFASTINT (BVAR (&buffer_defaults, left_margin_cols), 0); |