aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.h
diff options
context:
space:
mode:
authorroot2013-08-12 12:27:22 +0200
committerroot2013-08-12 12:27:22 +0200
commitc39e73975f7371a6458cd63967d39ba77a1e871a (patch)
tree145fb3d8489ecd65ac6b1887e17a204bff751286 /src/buffer.h
parent2427b15992fe47646a2bf2b55891f1e482dedaa0 (diff)
parent6edea0a595d292c4d3f1a7e862195be07c874e40 (diff)
downloademacs-c39e73975f7371a6458cd63967d39ba77a1e871a.tar.gz
emacs-c39e73975f7371a6458cd63967d39ba77a1e871a.zip
merge from trunk
Conflicts: src/Makefile.in
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 641a561cafc..221db39329a 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -632,9 +632,9 @@ struct buffer
632 /* List of symbols naming the file format used for auto-save file. */ 632 /* List of symbols naming the file format used for auto-save file. */
633 Lisp_Object INTERNAL_FIELD (auto_save_file_format); 633 Lisp_Object INTERNAL_FIELD (auto_save_file_format);
634 634
635 /* True if the newline position cache and width run cache are 635 /* True if the newline position cache, width run cache and BIDI paragraph
636 enabled. See search.c and indent.c. */ 636 cache are enabled. See search.c, indent.c and bidi.c for details. */
637 Lisp_Object INTERNAL_FIELD (cache_long_line_scans); 637 Lisp_Object INTERNAL_FIELD (cache_long_scans);
638 638
639 /* If the width run cache is enabled, this table contains the 639 /* If the width run cache is enabled, this table contains the
640 character widths width_run_cache (see above) assumes. When we 640 character widths width_run_cache (see above) assumes. When we
@@ -839,9 +839,12 @@ struct buffer
839 the character's width; if it maps a character to zero, we don't 839 the character's width; if it maps a character to zero, we don't
840 know what its width is. This allows compute_motion to process 840 know what its width is. This allows compute_motion to process
841 such regions very quickly, using algebra instead of inspecting 841 such regions very quickly, using algebra instead of inspecting
842 each character. See also width_table, below. */ 842 each character. See also width_table, below.
843
844 The latter cache is used to speedup bidi_find_paragraph_start. */
843 struct region_cache *newline_cache; 845 struct region_cache *newline_cache;
844 struct region_cache *width_run_cache; 846 struct region_cache *width_run_cache;
847 struct region_cache *bidi_paragraph_cache;
845 848
846 /* Non-zero means don't use redisplay optimizations for 849 /* Non-zero means don't use redisplay optimizations for
847 displaying this buffer. */ 850 displaying this buffer. */
@@ -1120,9 +1123,19 @@ record_unwind_current_buffer (void)
1120 } \ 1123 } \
1121 } while (0) 1124 } while (0)
1122 1125
1126extern Lisp_Object Vbuffer_alist;
1123extern Lisp_Object Qbefore_change_functions; 1127extern Lisp_Object Qbefore_change_functions;
1124extern Lisp_Object Qafter_change_functions; 1128extern Lisp_Object Qafter_change_functions;
1125extern Lisp_Object Qfirst_change_hook; 1129extern Lisp_Object Qfirst_change_hook;
1130extern Lisp_Object Qpriority, Qbefore_string, Qafter_string;
1131
1132/* FOR_EACH_LIVE_BUFFER (LIST_VAR, BUF_VAR) followed by a statement is
1133 a `for' loop which iterates over the buffers from Vbuffer_alist. */
1134
1135#define FOR_EACH_LIVE_BUFFER(list_var, buf_var) \
1136 for (list_var = Vbuffer_alist; \
1137 (CONSP (list_var) && (buf_var = XCDR (XCAR (list_var)), 1)); \
1138 list_var = XCDR (list_var))
1126 1139
1127/* Get text properties of B. */ 1140/* Get text properties of B. */
1128 1141