diff options
| author | Dan Nicolaescu | 2008-03-02 01:10:30 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-03-02 01:10:30 +0000 |
| commit | 93260283763e4e7a0b7972d6df0ce5f73b0bbc5e (patch) | |
| tree | ebd9e998a0e7c9bee32a7a8e5818ebcfb4a95d1f | |
| parent | 7d6f3b3a4debd99a98e2494bc82fbb8b7ce095f6 (diff) | |
| download | emacs-93260283763e4e7a0b7972d6df0ce5f73b0bbc5e.tar.gz emacs-93260283763e4e7a0b7972d6df0ce5f73b0bbc5e.zip | |
(compilation-menu-map): Add menu entries
for useful options.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 33 |
2 files changed, 37 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f77ca943161..be67b888ada 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-03-02 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * progmodes/compile.el (compilation-menu-map): Add menu entries | ||
| 4 | for useful options. | ||
| 5 | |||
| 1 | 2008-03-01 Dan Nicolaescu <dann@ics.uci.edu> | 6 | 2008-03-01 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | Glenn Morris <rgm@gnu.org> | 7 | Glenn Morris <rgm@gnu.org> |
| 3 | 8 | ||
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index b75180e2c51..cc170e4b277 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -1288,9 +1288,40 @@ Returns the compilation buffer created." | |||
| 1288 | (enlarge-window (- height (window-height)))))))) | 1288 | (enlarge-window (- height (window-height)))))))) |
| 1289 | 1289 | ||
| 1290 | (defvar compilation-menu-map | 1290 | (defvar compilation-menu-map |
| 1291 | (let ((map (make-sparse-keymap "Errors"))) | 1291 | (let ((map (make-sparse-keymap "Errors")) |
| 1292 | (opt-map (make-sparse-keymap "Skip"))) | ||
| 1292 | (define-key map [stop-subjob] | 1293 | (define-key map [stop-subjob] |
| 1293 | '("Stop Compilation" . kill-compilation)) | 1294 | '("Stop Compilation" . kill-compilation)) |
| 1295 | (define-key map [compilation-mode-separator3] | ||
| 1296 | '("----" . nil)) | ||
| 1297 | (define-key map [compilation-next-error-follow-minor-mode] | ||
| 1298 | '(menu-item | ||
| 1299 | "Auto Error Display" next-error-follow-minor-mode | ||
| 1300 | :help "Display the error under cursor when moving the cursor" | ||
| 1301 | :button (:toggle . next-error-follow-minor-mode))) | ||
| 1302 | (define-key map [compilation-skip] | ||
| 1303 | (cons "Skip Less Important Messages" opt-map)) | ||
| 1304 | (define-key opt-map [compilation-skip-none] | ||
| 1305 | '(menu-item "Don't Skip Any Messages" | ||
| 1306 | (lambda () | ||
| 1307 | (interactive) | ||
| 1308 | (customize-set-variable 'compilation-skip-threshold 0)) | ||
| 1309 | :help "Do not skip any type of messages" | ||
| 1310 | :button (:radio . (eq compilation-skip-threshold 0)))) | ||
| 1311 | (define-key opt-map [compilation-skip-info] | ||
| 1312 | '(menu-item "Skip Info" | ||
| 1313 | (lambda () | ||
| 1314 | (interactive) | ||
| 1315 | (customize-set-variable 'compilation-skip-threshold 1)) | ||
| 1316 | :help "Skip anything less than warning" | ||
| 1317 | :button (:radio . (eq compilation-skip-threshold 1)))) | ||
| 1318 | (define-key opt-map [compilation-skip-warning-and-info] | ||
| 1319 | '(menu-item "Skip Warnings and Info" | ||
| 1320 | (lambda () | ||
| 1321 | (interactive) | ||
| 1322 | (customize-set-variable 'compilation-skip-threshold 2)) | ||
| 1323 | :help "Skip over Warnings and Info, stop for errors" | ||
| 1324 | :button (:radio . (eq compilation-skip-threshold 2)))) | ||
| 1294 | (define-key map [compilation-mode-separator2] | 1325 | (define-key map [compilation-mode-separator2] |
| 1295 | '("----" . nil)) | 1326 | '("----" . nil)) |
| 1296 | (define-key map [compilation-first-error] | 1327 | (define-key map [compilation-first-error] |