GNU bug report logs - #69345
29.2; Quick Help shows wrong key binding for "kill region"

Previous Next

Package: emacs;

Reported by: Gómez Ocaña Pablo <pablo.gomezo <at> uah.es>

Date: Sat, 24 Feb 2024 07:56:02 UTC

Severity: normal

Found in version 29.2

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 69345 <at> debbugs.gnu.org (full text, mbox):

From: Philip Kaludercic <philipk <at> posteo.net>
To: Gómez Ocaña Pablo <pablo.gomezo <at> uah.es>
Cc: 69345 <at> debbugs.gnu.org
Subject: Re: bug#69345: 29.2; Quick Help shows wrong key binding for "kill
 region"
Date: Sat, 24 Feb 2024 10:02:37 +0000
[Message part 1 (text/plain, inline)]
Gómez Ocaña Pablo <pablo.gomezo <at> uah.es> writes:

> The command C-h C-q (help-quick-toggle) shows a list of popular
> commands, but the key binding for "kill region" is wrong: it shows M-w,
> but it should be C-w.

The issue is not really that the binding is wrong, since these are
determined using `where-is', but that the description isn't matching the
chosen command `kill-ring-save'.

So we can either fix it by using the "right" command

[Message part 2 (text/plain, inline)]
diff --git a/lisp/help.el b/lisp/help.el
index 07eed2861c2..15f013c3686 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -151,7 +151,7 @@ help-quick-sections
     ("Mark & Kill"
      (set-mark-command . "mark")
      (kill-line . "kill line")
-     (kill-ring-save . "kill region")
+     (kill-region . "kill region")
      (yank . "yank")
      (exchange-point-and-mark . "swap"))
     ("Projects"
[Message part 3 (text/plain, inline)]
or by changing the description:

[Message part 4 (text/plain, inline)]
diff --git a/lisp/help.el b/lisp/help.el
index 07eed2861c2..f72ebd90114 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -151,7 +151,7 @@ help-quick-sections
     ("Mark & Kill"
      (set-mark-command . "mark")
      (kill-line . "kill line")
-     (kill-ring-save . "kill region")
+     (kill-ring-save . "copy region")
      (yank . "yank")
      (exchange-point-and-mark . "swap"))
     ("Projects"
[Message part 5 (text/plain, inline)]
I think the second option is better, because "copying" code is probably
what more people are interested in.

This bug report was last modified 1 year and 87 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.