# HG changeset patch # User Richard M. Stallman # Date 762899713 0 # Node ID 993ca5adfcd1ac834ca3f2a9365beae41235fb09 # Parent 67c608b0e2f757b1d19954f9e055b27349fa5295 (read_minibuf): Don't call Vrun_hooks if it is nil. diff -r 67c608b0e2f7 -r 993ca5adfcd1 src/minibuf.c --- 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. */