diff options
| author | Richard M. Stallman <rms@gnu.org> | 1994-03-05 20:35:13 +0000 |
|---|---|---|
| committer | Richard M. Stallman <rms@gnu.org> | 1994-03-05 20:35:13 +0000 |
| commit | 92d3b06efb5ae21e5fae06371922f072f8c7984d (patch) | |
| tree | a9db39db7734276da7c575b462feadc02bd9f8cc | |
| parent | 9fed2b18527d163fa2d9134295371aead803b2e1 (diff) | |
| download | emacs-92d3b06efb5ae21e5fae06371922f072f8c7984d.tar.gz | |
(read_minibuf): Don't call Vrun_hooks if it is nil.
| -rw-r--r-- | src/minibuf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index abfa26178ec..cec7e206195 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -242,7 +242,8 @@ read_minibuf (map, initial, prompt, backup_n, expflag, histvar, histpos) /* Run our hook, but not if it is empty. (run-hooks would do nothing if it is empty, but it's important to save time here in the usual case. */ - if (!NILP (Vminibuffer_setup_hook) && !EQ (Vminibuffer_setup_hook, Qunbound)) + if (!NILP (Vminibuffer_setup_hook) && !EQ (Vminibuffer_setup_hook, Qunbound) + && !NILP (Vrun_hooks)) call1 (Vrun_hooks, Qminibuffer_setup_hook); /* ??? MCC did redraw_screen here if switching screens. */ |
