Commit 33aa8946 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(menu-bar-edit-menu): Add query-replace menu item.

Make a menu-enable property for query-replace.
parent e660d0db
......@@ -56,6 +56,8 @@
(define-key menu-bar-edit-menu [spell] '("Spell..." . ispell-menu-map))
(define-key menu-bar-edit-menu [fill] '("Fill" . fill-region))
(define-key menu-bar-edit-menu [clear] '("Clear" . delete-region))
(define-key menu-bar-edit-menu [query-replace]
'("Query Replace" . query-replace))
(define-key menu-bar-edit-menu [re-search-back]
'("Regexp Search Backwards" . re-search-backward))
(define-key menu-bar-edit-menu [search-back]
......@@ -79,6 +81,7 @@
(put 'undo 'menu-enable '(if (eq last-command 'undo)
(consp buffer-undo-list)))
(put 'query-replace 'menu-enable (not buffer-read-only))
(autoload 'ispell-menu-map "ispell" nil t 'keymap)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment