diff src/minibuf.c @ 6207:993ca5adfcd1

(read_minibuf): Don't call Vrun_hooks if it is nil.
author Richard M. Stallman <rms@gnu.org>
date Sat, 05 Mar 1994 20:35:13 +0000
parents 4a1c5b2c005d
children 1e90a9197a2a
line wrap: on
line diff
--- a/src/minibuf.c	Sat Mar 05 20:32:35 1994 +0000
+++ b/src/minibuf.c	Sat Mar 05 20:35:13 1994 +0000
@@ -242,7 +242,8 @@
   /* 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.  */