summaryrefslogtreecommitdiff
path: root/lisp/progmodes/grep.el
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2008-03-05 04:09:24 +0000
committerDan Nicolaescu <dann@ics.uci.edu>2008-03-05 04:09:24 +0000
commit388059876ac4a5aa55149e0544f58118742c5020 (patch)
tree1998506c19d7e9d9f6f8b513dc1e3566fcc1397d /lisp/progmodes/grep.el
parent3405b0dfde50d1f5e5983b84cbd5ead7490c7fd1 (diff)
downloademacs-388059876ac4a5aa55149e0544f58118742c5020.tar.gz
* bindings.el (mode-line-remote): Add mouse-face. Improve tooltip.
(standard-mode-line-position): Add mouse-face. * progmodes/compile.el (compilation-menu-map): (compilation-mode-map): * progmodes/grep.el (grep-mode-map): Add :help. * emacs-lisp/lisp-mode.el (emacs-lisp-mode-map): Define and initialize in one step. Add :help. Use :enable to activate menu items. Show the key binding for edebug-defun. (lisp-interaction-mode-map): Add a menu. * term.el (term-mode-map): Define and initialize in one step. * ediff-init.el (ediff-color-display-p): Simplify. (Xor): Remove unused function. (ediff-with-syntax-table): Simplify for emacs. * ediff-hook.el (menu-bar-ediff-menu): Don't depend on the menu-bar being loaded, it always is.
Diffstat (limited to 'lisp/progmodes/grep.el')
-rw-r--r--lisp/progmodes/grep.el30
1 files changed, 18 insertions, 12 deletions
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index 92c532f19d6..e1bce497224 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -197,25 +197,31 @@ See `compilation-error-screen-columns'"
(cons "Grep" (make-sparse-keymap "Grep")))
(define-key map [menu-bar grep compilation-kill-compilation]
- '("Kill Grep" . kill-compilation))
- (define-key map [menu-bar grep compilation-separator2]
- '("----" . nil))
+ '(menu-item "Kill Grep" kill-compilation
+ :help "Kill the currently running grep process"))
+ (define-key map [menu-bar grep compilation-separator2] '("----"))
(define-key map [menu-bar grep compilation-compile]
- '("Compile..." . compile))
+ '(menu-item "Compile..." compile
+ :help "Compile the program including the current buffer. Default: run `make'"))
(define-key map [menu-bar grep compilation-grep]
- '("Another grep..." . grep))
+ '(menu-item "Another grep..." grep
+ :help "Run grep, with user-specified args, and collect output in a buffer."))
(define-key map [menu-bar grep compilation-grep-find]
- '("Recursive grep..." . grep-find))
+ '(menu-item "Recursive grep..." grep-find
+ :help "Run grep via find, with user-specified args"))
(define-key map [menu-bar grep compilation-recompile]
- '("Repeat grep" . recompile))
- (define-key map [menu-bar grep compilation-separator2]
- '("----" . nil))
+ '(menu-item "Repeat grep" recompile
+ :help "Run grep again"))
+ (define-key map [menu-bar grep compilation-separator2] '("----"))
(define-key map [menu-bar grep compilation-first-error]
- '("First Match" . first-error))
+ '(menu-item "First Match" first-error
+ :help "Restart at the first match, visit corresponding location"))
(define-key map [menu-bar grep compilation-previous-error]
- '("Previous Match" . previous-error))
+ '(menu-item "Previous Match" previous-error
+ :help "Visit the previous match and corresponding location"))
(define-key map [menu-bar grep compilation-next-error]
- '("Next Match" . next-error))
+ '(menu-item "Next Match" next-error
+ :help "Visit the next match and corresponding location"))
map)
"Keymap for grep buffers.
`compilation-minor-mode-map' is a cdr of this.")