# HG changeset patch # User Richard M. Stallman # Date 843453098 0 # Node ID 584310941e7088fa1d955e86df113b97d1563296 # Parent 8915604a050c1478d9e0937ab9fca78cabb04702 (syms_of_eval): Initialize Vrun_hooks here. Don't make it a Lisp variable. diff -r 8915604a050c -r 584310941e70 src/eval.c --- a/src/eval.c Mon Sep 23 04:29:50 1996 +0000 +++ b/src/eval.c Mon Sep 23 04:31:38 1996 +0000 @@ -90,6 +90,9 @@ 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 @@ -2926,9 +2929,8 @@ "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;