From: Stefan Kangas Date: Thu, 20 Aug 2020 14:41:50 +0000 (+0200) Subject: Bind 'n' and 'p' in compilation-mode-map X-Git-Tag: emacs-28.0.90~6310 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=886ba068c82dcf5e0e2e1244bf99841d4ff5690c;p=emacs.git 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) --- diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 731db0fd6db..0dedde3d019 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