mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-21 18:23:59 +00:00
Enable "Continue Tags Search" menu item only when it can be used
* lisp/menu-bar.el (menu-bar-search-menu) <tags-continue>: Enable only when there was a previous tags search. (Bug#43569) (menu-bar-replace-menu) <tags-repl-continue>: Enable only when there was a previous tags-replace.
This commit is contained in:
parent
4bb7532163
commit
767713682c
@ -333,6 +333,8 @@
|
||||
|
||||
(bindings--define-key menu [tags-continue]
|
||||
'(menu-item "Continue Tags Search" fileloop-continue
|
||||
:enable (and (featurep 'fileloop)
|
||||
(not (eq fileloop--operate-function 'ignore)))
|
||||
:help "Continue last tags search operation"))
|
||||
(bindings--define-key menu [tags-srch]
|
||||
'(menu-item "Search Tagged Files..." tags-search
|
||||
@ -382,6 +384,8 @@
|
||||
(let ((menu (make-sparse-keymap "Replace")))
|
||||
(bindings--define-key menu [tags-repl-continue]
|
||||
'(menu-item "Continue Replace" fileloop-continue
|
||||
:enable (and (featurep 'fileloop)
|
||||
(not (eq fileloop--operate-function 'ignore)))
|
||||
:help "Continue last tags replace operation"))
|
||||
(bindings--define-key menu [tags-repl]
|
||||
'(menu-item "Replace in Tagged Files..." tags-query-replace
|
||||
|
Loading…
Reference in New Issue
Block a user