1. Nic Ferrier
  2. emacs


Richard M. Stallman  committed 5843109

(syms_of_eval): Initialize Vrun_hooks here.
Don't make it a Lisp variable.

  • Participants
  • Parent commits 8915604
  • Branches default

Comments (0)

Files changed (1)

File src/eval.c

View file
  • Ignore whitespace
 Lisp_Object Qand_rest, Qand_optional;
 Lisp_Object Qdebug_on_error;
+/* This holds either the symbol `run-hooks' or nil.
+   It is nil at an early stage of startup, and when Emacs
+   is shutting down.  */
 Lisp_Object Vrun_hooks;
 /* Non-nil means record all fset's and provide's, to be undone
     "While in a mocklisp function, the list of its unevaluated args.");
   Vmocklisp_arguments = Qt;
-  DEFVAR_LISP ("run-hooks", &Vrun_hooks,
-    "Set to the function `run-hooks', if that function has been defined.\n\
-Otherwise, nil (in a bare Emacs without preloaded Lisp code).");
+  Vrun_hooks = intern ("run-hooks");
+  staticpro (&Vrun_hooks);
   staticpro (&Vautoload_queue);
   Vautoload_queue = Qnil;