diff options
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/buffer.c b/src/buffer.c index d301e7f14f9..cdcd2ccecff 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -2520,8 +2520,7 @@ The first thing this function does is run | |||
| 2520 | the normal hook `change-major-mode-hook'. */) | 2520 | the normal hook `change-major-mode-hook'. */) |
| 2521 | (void) | 2521 | (void) |
| 2522 | { | 2522 | { |
| 2523 | if (!NILP (Vrun_hooks)) | 2523 | Frun_hooks (1, &Qchange_major_mode_hook); |
| 2524 | call1 (Vrun_hooks, Qchange_major_mode_hook); | ||
| 2525 | 2524 | ||
| 2526 | /* Make sure none of the bindings in local_var_alist | 2525 | /* Make sure none of the bindings in local_var_alist |
| 2527 | remain swapped in, in their symbols. */ | 2526 | remain swapped in, in their symbols. */ |
| @@ -5225,12 +5224,12 @@ init_buffer (void) | |||
| 5225 | #define DEFVAR_PER_BUFFER(lname, vname, type, doc) \ | 5224 | #define DEFVAR_PER_BUFFER(lname, vname, type, doc) \ |
| 5226 | do { \ | 5225 | do { \ |
| 5227 | static struct Lisp_Buffer_Objfwd bo_fwd; \ | 5226 | static struct Lisp_Buffer_Objfwd bo_fwd; \ |
| 5228 | defvar_per_buffer (&bo_fwd, lname, vname, type, 0); \ | 5227 | defvar_per_buffer (&bo_fwd, lname, vname, type); \ |
| 5229 | } while (0) | 5228 | } while (0) |
| 5230 | 5229 | ||
| 5231 | static void | 5230 | static void |
| 5232 | defvar_per_buffer (struct Lisp_Buffer_Objfwd *bo_fwd, const char *namestring, | 5231 | defvar_per_buffer (struct Lisp_Buffer_Objfwd *bo_fwd, const char *namestring, |
| 5233 | Lisp_Object *address, Lisp_Object type, char *doc) | 5232 | Lisp_Object *address, Lisp_Object type) |
| 5234 | { | 5233 | { |
| 5235 | struct Lisp_Symbol *sym; | 5234 | struct Lisp_Symbol *sym; |
| 5236 | int offset; | 5235 | int offset; |