Changeset 4140 for trunk/src/buffer.c
- Timestamp:
- 08/10/06 11:19:54 (2 years ago)
- Files:
-
- trunk/src/buffer.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/buffer.c
r4131 r4140 146 146 Lisp_Object Vkill_buffer_query_functions; 147 147 Lisp_Object Qkill_buffer_query_functions; 148 149 /* Hook run before changing a major mode. */ 150 Lisp_Object Vchange_major_mode_hook, Qchange_major_mode_hook; 148 151 149 152 /* List of functions to call before changing an unmodified buffer. */ … … 2394 2397 2395 2398 if (!NILP (Vrun_hooks)) 2396 call1 (Vrun_hooks, intern ("change-major-mode-hook"));2399 call1 (Vrun_hooks, Qchange_major_mode_hook); 2397 2400 oalist = current_buffer->local_var_alist; 2398 2401 … … 6006 6009 Vkill_buffer_query_functions = Qnil; 6007 6010 6011 DEFVAR_LISP ("change-major-mode-hook", &Vchange_major_mode_hook, 6012 doc: /* Normal hook run before changing the major mode of a buffer. 6013 The function `kill-all-local-variables' runs this before doing anything else. */); 6014 Vchange_major_mode_hook = Qnil; 6015 Qchange_major_mode_hook = intern ("change-major-mode-hook"); 6016 staticpro (&Qchange_major_mode_hook); 6017 6008 6018 defsubr (&Sbuffer_live_p); 6009 6019 defsubr (&Sbuffer_list);
