]> git.eshelyaron.com Git - emacs.git/commitdiff
Bind 'n' and 'p' in compilation-mode-map
authorStefan Kangas <stefankangas@gmail.com>
Thu, 20 Aug 2020 14:41:50 +0000 (16:41 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Sun, 30 Aug 2020 19:12:33 +0000 (21:12 +0200)
* lisp/progmodes/compile.el (compilation-mode-map): Bind
'(next|previous)-error-no-select' to 'n' and 'p'.  (Bug#41844)

lisp/progmodes/compile.el

index 731db0fd6dbad301746f0efeec8f0f1abfda4f8d..0dedde3d019c6383de244c30ca37228670d65613 100644 (file)
@@ -2064,6 +2064,8 @@ Returns the compilation buffer created."
     (define-key map "\M-p" 'compilation-previous-error)
     (define-key map "\M-{" 'compilation-previous-file)
     (define-key map "\M-}" 'compilation-next-file)
+    (define-key map "n" 'next-error-no-select)
+    (define-key map "p" 'previous-error-no-select)
     (define-key map "\t" 'compilation-next-error)
     (define-key map [backtab] 'compilation-previous-error)
     (define-key map "g" 'recompile) ; revert