diff options
| author | Joakim Verona | 2015-01-11 18:40:21 +0100 |
|---|---|---|
| committer | Joakim Verona | 2015-01-11 18:40:21 +0100 |
| commit | cc7cb20d6abc0f862e5513b24831bba0eaecaa5f (patch) | |
| tree | afc2fc05401504aa0c28699dc3bc155c5b0d7f58 /src/buffer.c | |
| parent | d972b504f30ff4300ba368940751e8736dddf0b4 (diff) | |
| parent | 9a57bda31569294ecaf8138a06e5edda9c0d87e3 (diff) | |
| download | emacs-cc7cb20d6abc0f862e5513b24831bba0eaecaa5f.tar.gz emacs-cc7cb20d6abc0f862e5513b24831bba0eaecaa5f.zip | |
merge master, fix conflicts
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 41 |
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. */ |
| 119 | Lisp_Object Vbuffer_alist; | 119 | Lisp_Object Vbuffer_alist; |
| 120 | 120 | ||
| 121 | static Lisp_Object Qkill_buffer_query_functions; | ||
| 122 | |||
| 123 | /* Hook run before changing a major mode. */ | ||
| 124 | static Lisp_Object Qchange_major_mode_hook; | ||
| 125 | |||
| 126 | Lisp_Object Qfirst_change_hook; | ||
| 127 | Lisp_Object Qbefore_change_functions; | ||
| 128 | Lisp_Object Qafter_change_functions; | ||
| 129 | |||
| 130 | static Lisp_Object Qfundamental_mode, Qmode_class, Qpermanent_local; | ||
| 131 | static Lisp_Object Qpermanent_local_hook; | ||
| 132 | |||
| 133 | static Lisp_Object Qprotected_field; | ||
| 134 | |||
| 135 | static Lisp_Object QSFundamental; /* A string "Fundamental". */ | 121 | static Lisp_Object QSFundamental; /* A string "Fundamental". */ |
| 136 | 122 | ||
| 137 | static Lisp_Object Qkill_buffer_hook; | ||
| 138 | static Lisp_Object Qbuffer_list_update_hook; | ||
| 139 | |||
| 140 | static Lisp_Object Qget_file_buffer; | ||
| 141 | |||
| 142 | static Lisp_Object Qoverlayp; | ||
| 143 | |||
| 144 | Lisp_Object Qpriority, Qbefore_string, Qafter_string; | ||
| 145 | |||
| 146 | static Lisp_Object Qevaporate; | ||
| 147 | |||
| 148 | Lisp_Object Qmodification_hooks; | ||
| 149 | Lisp_Object Qinsert_in_front_hooks; | ||
| 150 | Lisp_Object Qinsert_behind_hooks; | ||
| 151 | |||
| 152 | Lisp_Object Qchoice, Qrange, Qleft, Qright; | ||
| 153 | Lisp_Object Qvertical_scroll_bar, Qhorizontal_scroll_bar; | ||
| 154 | static Lisp_Object Qoverwrite_mode, Qfraction; | ||
| 155 | |||
| 156 | static void alloc_buffer_text (struct buffer *, ptrdiff_t); | 123 | static void alloc_buffer_text (struct buffer *, ptrdiff_t); |
| 157 | static void free_buffer_text (struct buffer *b); | 124 | static void free_buffer_text (struct buffer *b); |
| 158 | static struct Lisp_Overlay * copy_overlays (struct buffer *, struct Lisp_Overlay *); | 125 | static 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 | |||
| 2748 | the normal hook `change-major-mode-hook'. */) | 2715 | the 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. */ |