diff options
| author | Richard M. Stallman | 1994-06-21 20:49:12 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-06-21 20:49:12 +0000 |
| commit | 0a1dd1c57ac09175dff0b38f15faef6540d6f83f (patch) | |
| tree | 995bcead0ea3547447c04f169181e7b907a8b09b /src | |
| parent | ae0249dfd8b2e6133ee3fe0f7afcceb08b9d43a0 (diff) | |
| download | emacs-0a1dd1c57ac09175dff0b38f15faef6540d6f83f.tar.gz emacs-0a1dd1c57ac09175dff0b38f15faef6540d6f83f.zip | |
(read_minibuf_unwind): Run Qminibuffer_exit_hook here.
(read_minibuf): Not here.
Diffstat (limited to 'src')
| -rw-r--r-- | src/minibuf.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index ea83d05cba4..eb38fe0a895 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -252,10 +252,6 @@ read_minibuf (map, initial, prompt, backup_n, expflag, histvar, histpos) | |||
| 252 | /* ??? MCC did redraw_screen here if switching screens. */ | 252 | /* ??? MCC did redraw_screen here if switching screens. */ |
| 253 | recursive_edit_1 (); | 253 | recursive_edit_1 (); |
| 254 | 254 | ||
| 255 | if (!NILP (Vminibuffer_exit_hook) && !EQ (Vminibuffer_exit_hook, Qunbound) | ||
| 256 | && !NILP (Vrun_hooks)) | ||
| 257 | call1 (Vrun_hooks, Qminibuffer_exit_hook); | ||
| 258 | |||
| 259 | /* If cursor is on the minibuffer line, | 255 | /* If cursor is on the minibuffer line, |
| 260 | show the user we have exited by putting it in column 0. */ | 256 | show the user we have exited by putting it in column 0. */ |
| 261 | if ((FRAME_CURSOR_Y (selected_frame) | 257 | if ((FRAME_CURSOR_Y (selected_frame) |
| @@ -353,6 +349,12 @@ void | |||
| 353 | read_minibuf_unwind (data) | 349 | read_minibuf_unwind (data) |
| 354 | Lisp_Object data; | 350 | Lisp_Object data; |
| 355 | { | 351 | { |
| 352 | /* We are exiting the minibuffer one way or the other, | ||
| 353 | so run the hook. */ | ||
| 354 | if (!NILP (Vminibuffer_exit_hook) && !EQ (Vminibuffer_exit_hook, Qunbound) | ||
| 355 | && !NILP (Vrun_hooks)) | ||
| 356 | call1 (Vrun_hooks, Qminibuffer_exit_hook); | ||
| 357 | |||
| 356 | /* Erase the minibuffer we were using at this level. */ | 358 | /* Erase the minibuffer we were using at this level. */ |
| 357 | Fset_buffer (XWINDOW (minibuf_window)->buffer); | 359 | Fset_buffer (XWINDOW (minibuf_window)->buffer); |
| 358 | 360 | ||