summaryrefslogtreecommitdiff
path: root/lisp/progmodes/compile.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/compile.el')
-rw-r--r--lisp/progmodes/compile.el21
1 files changed, 14 insertions, 7 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index cc170e4b277..86db755b234 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -1291,7 +1291,8 @@ Returns the compilation buffer created."
(let ((map (make-sparse-keymap "Errors"))
(opt-map (make-sparse-keymap "Skip")))
(define-key map [stop-subjob]
- '("Stop Compilation" . kill-compilation))
+ '(menu-item "Stop Compilation" kill-compilation
+ :help "Kill the process made by the M-x compile or M-x grep commands"))
(define-key map [compilation-mode-separator3]
'("----" . nil))
(define-key map [compilation-next-error-follow-minor-mode]
@@ -1325,11 +1326,14 @@ Returns the compilation buffer created."
(define-key map [compilation-mode-separator2]
'("----" . nil))
(define-key map [compilation-first-error]
- '("First Error" . first-error))
+ '(menu-item "First Error" first-error
+ :help "Restart at the first error, visit corresponding source code"))
(define-key map [compilation-previous-error]
- '("Previous Error" . previous-error))
+ '(menu-item "Previous Error" previous-error
+ :help "Visit previous `next-error' message and corresponding source code"))
(define-key map [compilation-next-error]
- '("Next Error" . next-error))
+ '(menu-item "Next Error" next-error
+ :help "Visit next `next-error' message and corresponding source code"))
map))
(defvar compilation-minor-mode-map
@@ -1400,11 +1404,14 @@ Returns the compilation buffer created."
(define-key map [menu-bar compilation compilation-separator2]
'("----" . nil))
(define-key map [menu-bar compilation compilation-grep]
- '("Search Files (grep)..." . grep))
+ '(menu-item "Search Files (grep)..." grep
+ :help "Run grep, with user-specified args, and collect output in a buffer"))
(define-key map [menu-bar compilation compilation-recompile]
- '("Recompile" . recompile))
+ '(menu-item "Recompile" recompile
+ :help "Re-compile the program including the current buffer"))
(define-key map [menu-bar compilation compilation-compile]
- '("Compile..." . compile))
+ '(menu-item "Compile..." compile
+ :help "Compile the program including the current buffer. Default: run `make'"))
map)
"Keymap for compilation log buffers.
`compilation-minor-mode-map' is a parent of this.")