diff options
author | Charles A. Roelli <charles@aurox.ch> | 2018-11-24 13:48:57 +0100 |
---|---|---|
committer | Charles A. Roelli <charles@aurox.ch> | 2018-11-24 13:48:57 +0100 |
commit | 57b14370cd6d221b123eab98adfed8d12229057f (patch) | |
tree | 19bf59654cc22b17f613e8dd34b1beaf05c7ee94 /test/lisp/emacs-lisp/edebug-resources/edebug-test-code.el | |
parent | 4ef9bcd0ff0eccb0c0810f43370eaa76aef2f4ec (diff) | |
download | emacs-57b14370cd6d221b123eab98adfed8d12229057f.tar.gz emacs-57b14370cd6d221b123eab98adfed8d12229057f.tar.bz2 emacs-57b14370cd6d221b123eab98adfed8d12229057f.zip |
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'.
Diffstat (limited to 'test/lisp/emacs-lisp/edebug-resources/edebug-test-code.el')
0 files changed, 0 insertions, 0 deletions