aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorStefan Monnier2011-03-31 00:24:03 -0400
committerStefan Monnier2011-03-31 00:24:03 -0400
commit40d83b412f584cc02e68d4eac8fd5e6eb769e2fe (patch)
treeb56f27a7e6d75a8c1fd27b00179a27b5efea0a32 /src/buffer.c
parentf488fb6528738131ef41859e1f04125f2e50efce (diff)
parent44f230aa043ebb222aa0876b44d70484d5dd38db (diff)
downloademacs-40d83b412f584cc02e68d4eac8fd5e6eb769e2fe.tar.gz
emacs-40d83b412f584cc02e68d4eac8fd5e6eb769e2fe.zip
Merge from trunk
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c7
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
2520the normal hook `change-major-mode-hook'. */) 2520the 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
5231static void 5230static void
5232defvar_per_buffer (struct Lisp_Buffer_Objfwd *bo_fwd, const char *namestring, 5231defvar_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;