aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Steingold2008-05-08 17:28:05 +0000
committerSam Steingold2008-05-08 17:28:05 +0000
commit86c7460fae7cc08cd27376f7b1152578399e3bdf (patch)
treeefc81dbb4a1aea51fdeee4fb16fe9e9a6ef4eb92
parent9c355de85a4a109823fe040986ff3fc662e8b8fb (diff)
downloademacs-86c7460fae7cc08cd27376f7b1152578399e3bdf.tar.gz
emacs-86c7460fae7cc08cd27376f7b1152578399e3bdf.zip
(compilation-minor-mode-map, compilation-mode-map):
Bind "g" to recompile and "q" to quit-window. (grep-mode-map): Use `set-keymap-parent' to connect it to `compilation-minor-mode-map' (instead of an explicit `cons').
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/progmodes/compile.el4
-rw-r--r--lisp/progmodes/grep.el4
3 files changed, 14 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ca536eaec58..9c536a464fb 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12008-05-08 Sam Steingold <sds@gnu.org>
2
3 * progmodes/compile.el (compilation-minor-mode-map)
4 (compilation-mode-map): Bind "g" to recompile and "q" to
5 quit-window.
6 * grep.el (grep-mode-map): Use `set-keymap-parent' to connect it
7 to `compilation-minor-mode-map' (instead of an explicit `cons').
8
12008-05-08 Juanma Barranquero <lekktu@gmail.com> 92008-05-08 Juanma Barranquero <lekktu@gmail.com>
2 10
3 * org/org.el (org-modules, org-format-latex-options): 11 * org/org.el (org-modules, org-format-latex-options):
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 90da308d431..e8f879f2ffa 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -1357,6 +1357,8 @@ Returns the compilation buffer created."
1357 (define-key map "\M-p" 'compilation-previous-error) 1357 (define-key map "\M-p" 'compilation-previous-error)
1358 (define-key map "\M-{" 'compilation-previous-file) 1358 (define-key map "\M-{" 'compilation-previous-file)
1359 (define-key map "\M-}" 'compilation-next-file) 1359 (define-key map "\M-}" 'compilation-next-file)
1360 (define-key map "g" 'recompile) ; revert
1361 (define-key map "q" 'quit-window)
1360 ;; Set up the menu-bar 1362 ;; Set up the menu-bar
1361 (define-key map [menu-bar compilation] 1363 (define-key map [menu-bar compilation]
1362 (cons "Errors" compilation-menu-map)) 1364 (cons "Errors" compilation-menu-map))
@@ -1401,6 +1403,8 @@ Returns the compilation buffer created."
1401 (define-key map "\M-}" 'compilation-next-file) 1403 (define-key map "\M-}" 'compilation-next-file)
1402 (define-key map "\t" 'compilation-next-error) 1404 (define-key map "\t" 'compilation-next-error)
1403 (define-key map [backtab] 'compilation-previous-error) 1405 (define-key map [backtab] 'compilation-previous-error)
1406 (define-key map "g" 'recompile) ; revert
1407 (define-key map "q" 'quit-window)
1404 1408
1405 (define-key map " " 'scroll-up) 1409 (define-key map " " 'scroll-up)
1406 (define-key map "\^?" 'scroll-down) 1410 (define-key map "\^?" 'scroll-down)
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index f7fabfc95e5..b76ed012c0f 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -177,7 +177,8 @@ See `compilation-error-screen-columns'"
177 :group 'grep) 177 :group 'grep)
178 178
179(defvar grep-mode-map 179(defvar grep-mode-map
180 (let ((map (cons 'keymap compilation-minor-mode-map))) 180 (let ((map (make-sparse-keymap)))
181 (set-keymap-parent map compilation-minor-mode-map)
181 (define-key map " " 'scroll-up) 182 (define-key map " " 'scroll-up)
182 (define-key map "\^?" 'scroll-down) 183 (define-key map "\^?" 'scroll-down)
183 (define-key map "\C-c\C-f" 'next-error-follow-minor-mode) 184 (define-key map "\C-c\C-f" 'next-error-follow-minor-mode)
@@ -185,7 +186,6 @@ See `compilation-error-screen-columns'"
185 (define-key map "\r" 'compile-goto-error) ;; ? 186 (define-key map "\r" 'compile-goto-error) ;; ?
186 (define-key map "n" 'next-error-no-select) 187 (define-key map "n" 'next-error-no-select)
187 (define-key map "p" 'previous-error-no-select) 188 (define-key map "p" 'previous-error-no-select)
188 (define-key map "g" 'recompile) ; revert
189 (define-key map "{" 'compilation-previous-file) 189 (define-key map "{" 'compilation-previous-file)
190 (define-key map "}" 'compilation-next-file) 190 (define-key map "}" 'compilation-next-file)
191 (define-key map "\t" 'compilation-next-error) 191 (define-key map "\t" 'compilation-next-error)