diff options
| author | Martin Rudalics | 2012-04-24 10:56:31 +0200 |
|---|---|---|
| committer | Martin Rudalics | 2012-04-24 10:56:31 +0200 |
| commit | b1bac16eadc78ea3c72626f651d53f17065dcd0a (patch) | |
| tree | 9240b625b92c9d403f456ef5a818355e0c80fc99 | |
| parent | d69621ccc6e29c793efd767c5595e2b2413350f4 (diff) | |
| download | emacs-b1bac16eadc78ea3c72626f651d53f17065dcd0a.tar.gz emacs-b1bac16eadc78ea3c72626f651d53f17065dcd0a.zip | |
Don't clear echo area prematurely when handling select window events (Bug#11304).
* keyboard.c (read_char): Don't wipe echo area for select window
events: These might get delayed via `mouse-autoselect-window'
(Bug#11304).
* window.el (handle-select-window): Clear echo area since this is
no more done by read_char (Bug#11304).
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/window.el | 2 | ||||
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/keyboard.c | 5 |
4 files changed, 17 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 848fc434956..1b5c9d75e9e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-04-24 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * window.el (handle-select-window): Clear echo area since this is | ||
| 4 | no more done by read_char (Bug#11304). | ||
| 5 | |||
| 1 | 2012-04-24 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2012-04-24 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * ibuffer.el (ibuffer-mode-map): Bind `/ m' to filter-used-mode | 8 | * ibuffer.el (ibuffer-mode-map): Bind `/ m' to filter-used-mode |
diff --git a/lisp/window.el b/lisp/window.el index c148f5ee01f..b8f1bf3456d 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -5727,6 +5727,8 @@ is active. This function is run by `mouse-autoselect-window-timer'." | |||
| 5727 | (setq mouse-autoselect-window-state nil) | 5727 | (setq mouse-autoselect-window-state nil) |
| 5728 | ;; Run `mouse-leave-buffer-hook' when autoselecting window. | 5728 | ;; Run `mouse-leave-buffer-hook' when autoselecting window. |
| 5729 | (run-hooks 'mouse-leave-buffer-hook)) | 5729 | (run-hooks 'mouse-leave-buffer-hook)) |
| 5730 | ;; Clear echo area. | ||
| 5731 | (message nil) | ||
| 5730 | (select-window window)))) | 5732 | (select-window window)))) |
| 5731 | 5733 | ||
| 5732 | (defun truncated-partial-width-window-p (&optional window) | 5734 | (defun truncated-partial-width-window-p (&optional window) |
diff --git a/src/ChangeLog b/src/ChangeLog index 30ba6d6c4a9..3fccf8cc439 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-04-24 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * keyboard.c (read_char): Don't wipe echo area for select window | ||
| 4 | events: These might get delayed via `mouse-autoselect-window' | ||
| 5 | (Bug#11304). | ||
| 6 | |||
| 1 | 2012-04-24 Juanma Barranquero <lekktu@gmail.com> | 7 | 2012-04-24 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 8 | ||
| 3 | * gnutls.c (init_gnutls_functions): Protect against (unlikely) | 9 | * gnutls.c (init_gnutls_functions): Protect against (unlikely) |
diff --git a/src/keyboard.c b/src/keyboard.c index 614746e35b2..48b31d8b564 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -2984,7 +2984,10 @@ read_char (int commandflag, ptrdiff_t nmaps, Lisp_Object *maps, | |||
| 2984 | own stuff with the echo area. */ | 2984 | own stuff with the echo area. */ |
| 2985 | if (!CONSP (c) | 2985 | if (!CONSP (c) |
| 2986 | || (!(EQ (Qhelp_echo, XCAR (c))) | 2986 | || (!(EQ (Qhelp_echo, XCAR (c))) |
| 2987 | && !(EQ (Qswitch_frame, XCAR (c))))) | 2987 | && !(EQ (Qswitch_frame, XCAR (c))) |
| 2988 | /* Don't wipe echo area for select window events: These might | ||
| 2989 | get delayed via `mouse-autoselect-window' (Bug#11304). */ | ||
| 2990 | && !(EQ (Qselect_window, XCAR (c))))) | ||
| 2988 | { | 2991 | { |
| 2989 | if (!NILP (echo_area_buffer[0])) | 2992 | if (!NILP (echo_area_buffer[0])) |
| 2990 | safe_run_hooks (Qecho_area_clear_hook); | 2993 | safe_run_hooks (Qecho_area_clear_hook); |