aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorJoakim Verona2015-01-11 18:40:21 +0100
committerJoakim Verona2015-01-11 18:40:21 +0100
commitcc7cb20d6abc0f862e5513b24831bba0eaecaa5f (patch)
treeafc2fc05401504aa0c28699dc3bc155c5b0d7f58 /src/buffer.c
parentd972b504f30ff4300ba368940751e8736dddf0b4 (diff)
parent9a57bda31569294ecaf8138a06e5edda9c0d87e3 (diff)
downloademacs-cc7cb20d6abc0f862e5513b24831bba0eaecaa5f.tar.gz
emacs-cc7cb20d6abc0f862e5513b24831bba0eaecaa5f.zip
merge master, fix conflicts
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c41
1 files changed, 4 insertions, 37 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 7023a515571..2ea69f38f91 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -118,41 +118,8 @@ static void reset_buffer_local_variables (struct buffer *, bool);
118 due to user rplac'ing this alist or its elements. */ 118 due to user rplac'ing this alist or its elements. */
119Lisp_Object Vbuffer_alist; 119Lisp_Object Vbuffer_alist;
120 120
121static Lisp_Object Qkill_buffer_query_functions;
122
123/* Hook run before changing a major mode. */
124static Lisp_Object Qchange_major_mode_hook;
125
126Lisp_Object Qfirst_change_hook;
127Lisp_Object Qbefore_change_functions;
128Lisp_Object Qafter_change_functions;
129
130static Lisp_Object Qfundamental_mode, Qmode_class, Qpermanent_local;
131static Lisp_Object Qpermanent_local_hook;
132
133static Lisp_Object Qprotected_field;
134
135static Lisp_Object QSFundamental; /* A string "Fundamental". */ 121static Lisp_Object QSFundamental; /* A string "Fundamental". */
136 122
137static Lisp_Object Qkill_buffer_hook;
138static Lisp_Object Qbuffer_list_update_hook;
139
140static Lisp_Object Qget_file_buffer;
141
142static Lisp_Object Qoverlayp;
143
144Lisp_Object Qpriority, Qbefore_string, Qafter_string;
145
146static Lisp_Object Qevaporate;
147
148Lisp_Object Qmodification_hooks;
149Lisp_Object Qinsert_in_front_hooks;
150Lisp_Object Qinsert_behind_hooks;
151
152Lisp_Object Qchoice, Qrange, Qleft, Qright;
153Lisp_Object Qvertical_scroll_bar, Qhorizontal_scroll_bar;
154static Lisp_Object Qoverwrite_mode, Qfraction;
155
156static void alloc_buffer_text (struct buffer *, ptrdiff_t); 123static void alloc_buffer_text (struct buffer *, ptrdiff_t);
157static void free_buffer_text (struct buffer *b); 124static void free_buffer_text (struct buffer *b);
158static struct Lisp_Overlay * copy_overlays (struct buffer *, struct Lisp_Overlay *); 125static struct Lisp_Overlay * copy_overlays (struct buffer *, struct Lisp_Overlay *);
@@ -1719,7 +1686,7 @@ cleaning up all windows currently displaying the buffer to be killed. */)
1719 return unbind_to (count, Qt); 1686 return unbind_to (count, Qt);
1720 1687
1721 /* Then run the hooks. */ 1688 /* Then run the hooks. */
1722 Frun_hooks (1, &Qkill_buffer_hook); 1689 run_hook (Qkill_buffer_hook);
1723 unbind_to (count, Qnil); 1690 unbind_to (count, Qnil);
1724 } 1691 }
1725 1692
@@ -2748,7 +2715,7 @@ The first thing this function does is run
2748the normal hook `change-major-mode-hook'. */) 2715the normal hook `change-major-mode-hook'. */)
2749 (void) 2716 (void)
2750{ 2717{
2751 Frun_hooks (1, &Qchange_major_mode_hook); 2718 run_hook (Qchange_major_mode_hook);
2752 2719
2753 /* Make sure none of the bindings in local_var_alist 2720 /* Make sure none of the bindings in local_var_alist
2754 remain swapped in, in their symbols. */ 2721 remain swapped in, in their symbols. */
@@ -5071,9 +5038,9 @@ init_buffer_once (void)
5071 /* Make sure all markable slots in buffer_defaults 5038 /* Make sure all markable slots in buffer_defaults
5072 are initialized reasonably, so mark_buffer won't choke. */ 5039 are initialized reasonably, so mark_buffer won't choke. */
5073 reset_buffer (&buffer_defaults); 5040 reset_buffer (&buffer_defaults);
5074 eassert (EQ (BVAR (&buffer_defaults, name), make_number (0))); 5041 eassert (NILP (BVAR (&buffer_defaults, name)));
5075 reset_buffer_local_variables (&buffer_defaults, 1); 5042 reset_buffer_local_variables (&buffer_defaults, 1);
5076 eassert (EQ (BVAR (&buffer_local_symbols, name), make_number (0))); 5043 eassert (NILP (BVAR (&buffer_local_symbols, name)));
5077 reset_buffer (&buffer_local_symbols); 5044 reset_buffer (&buffer_local_symbols);
5078 reset_buffer_local_variables (&buffer_local_symbols, 1); 5045 reset_buffer_local_variables (&buffer_local_symbols, 1);
5079 /* Prevent GC from getting confused. */ 5046 /* Prevent GC from getting confused. */