]> code.delx.au - gnu-emacs/commitdiff
(read_minibuf): Don't call Vrun_hooks if it is nil.
authorRichard M. Stallman <rms@gnu.org>
Sat, 5 Mar 1994 20:35:13 +0000 (20:35 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 5 Mar 1994 20:35:13 +0000 (20:35 +0000)
src/minibuf.c

index abfa26178ec3474ff1260a048be708ad3b31ca57..cec7e2061957543fe8131ad883be2d3e7e494525 100644 (file)
@@ -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.  */