diff options
| author | Richard M. Stallman | 1994-03-05 20:35:13 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-03-05 20:35:13 +0000 |
| commit | 92d3b06efb5ae21e5fae06371922f072f8c7984d (patch) | |
| tree | a9db39db7734276da7c575b462feadc02bd9f8cc /src | |
| parent | 9fed2b18527d163fa2d9134295371aead803b2e1 (diff) | |
| download | emacs-92d3b06efb5ae21e5fae06371922f072f8c7984d.tar.gz emacs-92d3b06efb5ae21e5fae06371922f072f8c7984d.zip | |
(read_minibuf): Don't call Vrun_hooks if it is nil.
Diffstat (limited to 'src')
| -rw-r--r-- | src/minibuf.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
| 242 | /* Run our hook, but not if it is empty. | 242 | /* Run our hook, but not if it is empty. |
| 243 | (run-hooks would do nothing if it is empty, | 243 | (run-hooks would do nothing if it is empty, |
| 244 | but it's important to save time here in the usual case. */ | 244 | but it's important to save time here in the usual case. */ |
| 245 | if (!NILP (Vminibuffer_setup_hook) && !EQ (Vminibuffer_setup_hook, Qunbound)) | 245 | if (!NILP (Vminibuffer_setup_hook) && !EQ (Vminibuffer_setup_hook, Qunbound) |
| 246 | && !NILP (Vrun_hooks)) | ||
| 246 | call1 (Vrun_hooks, Qminibuffer_setup_hook); | 247 | call1 (Vrun_hooks, Qminibuffer_setup_hook); |
| 247 | 248 | ||
| 248 | /* ??? MCC did redraw_screen here if switching screens. */ | 249 | /* ??? MCC did redraw_screen here if switching screens. */ |