changeset 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 67c608b0e2f7
children db4139d43f8a
files src/minibuf.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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.  */