aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/replace.el
diff options
context:
space:
mode:
authorGlenn Morris2011-04-07 20:05:58 -0700
committerGlenn Morris2011-04-07 20:05:58 -0700
commit12544bbe7512150c9af6d082cbfbc6a4279215ad (patch)
treef107d343aa98f67136c55ddf9e85cddd8d0af95f /lisp/replace.el
parent135377f15747dbabf4a81c2b6982c50b11b429ab (diff)
downloademacs-12544bbe7512150c9af6d082cbfbc6a4279215ad.tar.gz
emacs-12544bbe7512150c9af6d082cbfbc6a4279215ad.zip
* lisp/replace.el (occur-mode-map): Some fixes for menu items.
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el25
1 files changed, 14 insertions, 11 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index 928c3170c65..0ed716966ed 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -772,26 +772,29 @@ a previously found match."
772 (define-key map "\C-c\C-f" 'next-error-follow-minor-mode) 772 (define-key map "\C-c\C-f" 'next-error-follow-minor-mode)
773 (define-key map [menu-bar] (make-sparse-keymap)) 773 (define-key map [menu-bar] (make-sparse-keymap))
774 (define-key map [menu-bar occur] 774 (define-key map [menu-bar occur]
775 `(cons ,(purecopy "Occur") map)) 775 (cons (purecopy "Occur") map))
776 (define-key map [next-error-follow-minor-mode] 776 (define-key map [next-error-follow-minor-mode]
777 (menu-bar-make-mm-toggle next-error-follow-minor-mode 777 `(menu-item ,(purecopy "Auto Occurrence Display")
778 "Auto Occurrence Display" 778 next-error-follow-minor-mode
779 "Display another occurrence when moving the cursor")) 779 :help ,(purecopy
780 "Display another occurrence when moving the cursor")
781 :button (:toggle . (and (boundp 'next-error-follow-minor-mode)
782 next-error-follow-minor-mode))))
780 (define-key map [separator-1] menu-bar-separator) 783 (define-key map [separator-1] menu-bar-separator)
781 (define-key map [kill-this-buffer] 784 (define-key map [kill-this-buffer]
782 `(menu-item ,(purecopy "Kill occur buffer") kill-this-buffer 785 `(menu-item ,(purecopy "Kill Occur Buffer") kill-this-buffer
783 :help ,(purecopy "Kill the current *Occur* buffer"))) 786 :help ,(purecopy "Kill the current *Occur* buffer")))
784 (define-key map [quit-window] 787 (define-key map [quit-window]
785 `(menu-item ,(purecopy "Quit occur window") quit-window 788 `(menu-item ,(purecopy "Quit Occur Window") quit-window
786 :help ,(purecopy "Quit the current *Occur* buffer. Bury it, and maybe delete the selected frame"))) 789 :help ,(purecopy "Quit the current *Occur* buffer. Bury it, and maybe delete the selected frame")))
787 (define-key map [revert-buffer] 790 (define-key map [revert-buffer]
788 `(menu-item ,(purecopy "Revert occur buffer") revert-buffer 791 `(menu-item ,(purecopy "Revert Occur Buffer") revert-buffer
789 :help ,(purecopy "Replace the text in the *Occur* buffer with the results of rerunning occur"))) 792 :help ,(purecopy "Replace the text in the *Occur* buffer with the results of rerunning occur")))
790 (define-key map [clone-buffer] 793 (define-key map [clone-buffer]
791 `(menu-item ,(purecopy "Clone occur buffer") clone-buffer 794 `(menu-item ,(purecopy "Clone Occur Buffer") clone-buffer
792 :help ,(purecopy "Create and return a twin copy of the current *Occur* buffer"))) 795 :help ,(purecopy "Create and return a twin copy of the current *Occur* buffer")))
793 (define-key map [occur-rename-buffer] 796 (define-key map [occur-rename-buffer]
794 `(menu-item ,(purecopy "Rename occur buffer") occur-rename-buffer 797 `(menu-item ,(purecopy "Rename Occur Buffer") occur-rename-buffer
795 :help ,(purecopy "Rename the current *Occur* buffer to *Occur: original-buffer-name*."))) 798 :help ,(purecopy "Rename the current *Occur* buffer to *Occur: original-buffer-name*.")))
796 (define-key map [separator-2] menu-bar-separator) 799 (define-key map [separator-2] menu-bar-separator)
797 (define-key map [occur-mode-goto-occurrence-other-window] 800 (define-key map [occur-mode-goto-occurrence-other-window]
@@ -804,10 +807,10 @@ a previously found match."
804 `(menu-item ,(purecopy "Display Occurrence") occur-mode-display-occurrence 807 `(menu-item ,(purecopy "Display Occurrence") occur-mode-display-occurrence
805 :help ,(purecopy "Display in another window the occurrence the current line describes"))) 808 :help ,(purecopy "Display in another window the occurrence the current line describes")))
806 (define-key map [occur-next] 809 (define-key map [occur-next]
807 `(menu-item ,(purecopy "Move to next match") occur-next 810 `(menu-item ,(purecopy "Move to Next Match") occur-next
808 :help ,(purecopy "Move to the Nth (default 1) next match in an Occur mode buffer"))) 811 :help ,(purecopy "Move to the Nth (default 1) next match in an Occur mode buffer")))
809 (define-key map [occur-prev] 812 (define-key map [occur-prev]
810 `(menu-item ,(purecopy "Move to previous match") occur-prev 813 `(menu-item ,(purecopy "Move to Previous Match") occur-prev
811 :help ,(purecopy "Move to the Nth (default 1) previous match in an Occur mode buffer"))) 814 :help ,(purecopy "Move to the Nth (default 1) previous match in an Occur mode buffer")))
812 map) 815 map)
813 "Keymap for `occur-mode'.") 816 "Keymap for `occur-mode'.")