From: Richard M. Stallman Date: Sat, 5 Mar 1994 20:35:13 +0000 (+0000) Subject: (read_minibuf): Don't call Vrun_hooks if it is nil. X-Git-Tag: emacs-19.34~9645 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=92d3b06efb5ae21e5fae06371922f072f8c7984d;p=emacs.git (read_minibuf): Don't call Vrun_hooks if it is nil. --- 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. */