diff options
| author | Julien Danjou <julien@danjou.info> | 2011-03-23 11:06:57 +0100 |
|---|---|---|
| committer | Julien Danjou <julien@danjou.info> | 2011-03-23 11:06:57 +0100 |
| commit | dee091a37f6486dbbcf7bf00f6ee54d77033f997 (patch) | |
| tree | 922b3490e04f512f9664ca350102d57a18296680 /src/emacs.c | |
| parent | 904a432cf44c176fa3c88a975f046d0cf2992023 (diff) | |
| download | emacs-dee091a37f6486dbbcf7bf00f6ee54d77033f997.tar.gz | |
Use Frun_hooks rather than calling Vrun_hooks manually
Diffstat (limited to 'src/emacs.c')
| -rw-r--r-- | src/emacs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/emacs.c b/src/emacs.c index bc7c07a9326..0382ade728d 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1972,14 +1972,15 @@ all of which are called before Emacs is actually killed. */) (Lisp_Object arg) { struct gcpro gcpro1; + Lisp_Object hook; GCPRO1 (arg); if (feof (stdin)) arg = Qt; - if (!NILP (Vrun_hooks)) - call1 (Vrun_hooks, intern ("kill-emacs-hook")); + hook = intern ("kill-emacs-hook"); + Frun_hooks (1, &hook); UNGCPRO; |
