Mercurial > emacs
changeset 16296:584310941e70
(syms_of_eval): Initialize Vrun_hooks here.
Don't make it a Lisp variable.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 23 Sep 1996 04:31:38 +0000 |
parents | 8915604a050c |
children | 701db778b7a4 |
files | src/eval.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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;