emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 886ba06: Bind 'n' and 'p' in compilation-mode-map


From: Stefan Kangas
Subject: master 886ba06: Bind 'n' and 'p' in compilation-mode-map
Date: Sun, 30 Aug 2020 15:12:53 -0400 (EDT)

branch: master
commit 886ba068c82dcf5e0e2e1244bf99841d4ff5690c
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    Bind 'n' and 'p' in compilation-mode-map
    
    * lisp/progmodes/compile.el (compilation-mode-map): Bind
    '(next|previous)-error-no-select' to 'n' and 'p'.  (Bug#41844)
---
 lisp/progmodes/compile.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 731db0f..0dedde3 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]