• Charles A. Roelli's avatar
    Add tool-bar and menu-bar menu for Isearch (Bug#32990) · 57b14370
    Charles A. Roelli authored
    * 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'.
    57b14370
NEWS 52.5 KB