]> git.eshelyaron.com Git - emacs.git/commit
In edebug in GUIs, move focus to the selected frame.
authorAlan Mackenzie <acm@muc.de>
Fri, 19 Oct 2018 17:44:31 +0000 (17:44 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 19 Oct 2018 17:44:31 +0000 (17:44 +0000)
commit7cfe2dc415d0a5768f9e6800836ff6887079dc30
tree837db78e1b917e7b594a280097875857d172670b
parentd2a07b9a82a632e8baa179c667a98d275e5f6973
In edebug in GUIs, move focus to the selected frame.

Thus when entering edebug, the focus will be moved to the frame with the
source being debugged, and when its finished, the focus will move back.
Commands edebug-visit-eval-list (`E') and edebug-bounce-point (`p') have been
likewise amended.

* src/keyboard.c (readable_events): Handle FOCUS_OUT_EVENT as an invisible
event.  This prevents input-pending-p returning t when one of these events
arrives, and thus obviates an instant termination of sit-for when there's no
"real" event waiting.

* lisp/emacs-lisp/edebug.el (edebug-focus-frame): New function.
(edebug-default-enter, edebug--display-1, edbug-where, edebug-bounce-point)
(edebug-visit-eval-list): Call edebug-focus-frame to move focus into the
window newly selected by edebug-pop-to-buffer.
lisp/emacs-lisp/edebug.el
src/keyboard.c