From 92d3b06efb5ae21e5fae06371922f072f8c7984d Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 5 Mar 1994 20:35:13 +0000 Subject: [PATCH] (read_minibuf): Don't call Vrun_hooks if it is nil. --- src/minibuf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. */ -- 2.39.5