]> git.eshelyaron.com Git - emacs.git/commit
Add tool-bar and menu-bar menu for Isearch (Bug#32990)
authorCharles A. Roelli <charles@aurox.ch>
Sat, 24 Nov 2018 12:48:57 +0000 (13:48 +0100)
committerCharles A. Roelli <charles@aurox.ch>
Sat, 24 Nov 2018 12:48:57 +0000 (13:48 +0100)
commit57b14370cd6d221b123eab98adfed8d12229057f
tree19bf59654cc22b17f613e8dd34b1beaf05c7ee94
parent4ef9bcd0ff0eccb0c0810f43370eaa76aef2f4ec
Add tool-bar and menu-bar menu for Isearch (Bug#32990)

* etc/NEWS (Search and Replace): Mention this change.

* lisp/isearch.el: Declare the new, non-autoloaded function
'tmm-menubar-keymap'.
(isearch-tmm-menubar): New function.
(isearch-menu-bar-commands): New variable.
(isearch-menu-bar-yank-map, isearch-menu-bar-map): New variables.
(isearch-mode-map): Define a menu-bar search menu and remap
'tmm-menubar' bindings to point to 'isearch-tmm-menubar'.
(isearch-tool-bar-old-map): New variable.
(isearch-tool-bar-image): New function.
(isearch-tool-bar-map): New variable.
(minor-mode-map-alist): Add an entry for Isearch so that
'isearch-menu-bar-map' shows during search.
(isearch-mode, isearch-done): Save and restore possible
buffer-local 'tool-bar-map' using 'isearch-tool-bar-old-map'.
(iseacrh-mouse-commands): New variable.
(isearch-mouse-leave-buffer): Allow commands in
isearch-mouse-commands.
(with-isearch-suspended): Only push changed states of Isearch
after running the body argument of this macro.
(isearch-pre-command-hook): Additionally allow bindings in
'isearch-tool-bar-map' to pass through, as well as commands
in isearch-menu-bar-commands.
(isearch-post-command-hook): Call 'force-mode-line-update' at its
end to make sure the menu- and tool-bars are up-to-date.

* lisp/tmm.el (tmm-menubar-keymap): New function factored out from
'tmm-menubar'.
(tmm-menubar): Use 'tmm-menubar-keymap'.
(tmm-prompt): New optional argument 'no-execute'.
etc/NEWS
lisp/isearch.el
lisp/tmm.el