Show
Ignore:
Timestamp:
08/10/06 11:19:54 (2 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/buffer.c

    r4131 r4140  
    146146Lisp_Object Vkill_buffer_query_functions; 
    147147Lisp_Object Qkill_buffer_query_functions; 
     148 
     149/* Hook run before changing a major mode.  */ 
     150Lisp_Object Vchange_major_mode_hook, Qchange_major_mode_hook; 
    148151 
    149152/* List of functions to call before changing an unmodified buffer.  */ 
     
    23942397 
    23952398  if (!NILP (Vrun_hooks)) 
    2396     call1 (Vrun_hooks, intern ("change-major-mode-hook")); 
     2399    call1 (Vrun_hooks, Qchange_major_mode_hook); 
    23972400  oalist = current_buffer->local_var_alist; 
    23982401 
     
    60066009  Vkill_buffer_query_functions = Qnil; 
    60076010 
     6011  DEFVAR_LISP ("change-major-mode-hook", &Vchange_major_mode_hook, 
     6012               doc: /* Normal hook run before changing the major mode of a buffer. 
     6013The 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 
    60086018  defsubr (&Sbuffer_live_p); 
    60096019  defsubr (&Sbuffer_list);