From: Stefan Kangas <stefan@marxist.se>
To: Colton Lewis <colton.w.lewis@protonmail.com>
Cc: 41844@debbugs.gnu.org
Subject: bug#41844: 26.3; Compilation mode keybindings inconsistent with Grep mode
Date: Thu, 20 Aug 2020 07:54:05 -0700 [thread overview]
Message-ID: <CADwFkmmvsPpqj5-3PFB5=5781G6CD5xT_7AoJ1p4wdpmemVj8A@mail.gmail.com> (raw)
In-Reply-To: <4179197.mvXUDI8C0e@laptop.coltonlewis.name> (Colton Lewis's message of "Sun, 14 Jun 2020 03:57:25 +0000")
[-- Attachment #1: Type: text/plain, Size: 549 bytes --]
severity 41844 wishlist
tags 41844 + patch
thanks
Colton Lewis <colton.w.lewis@protonmail.com> writes:
> When in Grep mode, 'n' and 'p' respectively go to the next and previous
> match in the buffer.
>
> However, Compilation mode leaves 'n' and 'p' unbound. This inconsistency
> is annoying.
Sounds like a good idea to me. I've attached a patch which does this.
Any other opinions? I admit that I don't use compilation-mode as much
as I probably should (I'm silly enough to often run make manually from
my shell).
Best regards,
Stefan Kangas
[-- Attachment #2: 0001-Bind-n-and-p-in-compilation-mode-map.patch --]
[-- Type: text/x-diff, Size: 1049 bytes --]
From 4373da0b4e8cee23c53b5e46f28d69e9b6e444ed Mon Sep 17 00:00:00 2001
From: Stefan Kangas <stefankangas@gmail.com>
Date: Thu, 20 Aug 2020 16:41:50 +0200
Subject: [PATCH] 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 0b9f417845..2805f644e9 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -2064,6 +2064,8 @@ compilation-mode-map
(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
--
2.28.0
next prev parent reply other threads:[~2020-08-20 14:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-14 3:57 bug#41844: 26.3; Compilation mode keybindings inconsistent with Grep mode Colton Lewis via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-08-20 14:54 ` Stefan Kangas [this message]
2020-08-30 19:15 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADwFkmmvsPpqj5-3PFB5=5781G6CD5xT_7AoJ1p4wdpmemVj8A@mail.gmail.com' \
--to=stefan@marxist.se \
--cc=41844@debbugs.gnu.org \
--cc=colton.w.lewis@protonmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.