all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Philip Kaludercic <philipk@posteo.net>
To: "Gómez Ocaña Pablo" <pablo.gomezo@uah.es>
Cc: 69345@debbugs.gnu.org
Subject: bug#69345: 29.2; Quick Help shows wrong key binding for "kill region"
Date: Sat, 24 Feb 2024 10:02:37 +0000	[thread overview]
Message-ID: <87v86e6uyq.fsf@posteo.net> (raw)
In-Reply-To: <DB6PR03MB31113AF0C43398586CA6C705F5552@DB6PR03MB3111.eurprd03.prod.outlook.com> ("Gómez Ocaña Pablo"'s message of "Fri, 23 Feb 2024 18:48:31 +0000")

[-- Attachment #1: Type: text/plain, Size: 456 bytes --]

Gómez Ocaña Pablo <pablo.gomezo@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


[-- Attachment #2: Type: text/plain, Size: 399 bytes --]

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"

[-- Attachment #3: Type: text/plain, Size: 34 bytes --]


or by changing the description:


[-- Attachment #4: Type: text/plain, Size: 402 bytes --]

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"

[-- Attachment #5: Type: text/plain, Size: 109 bytes --]


I think the second option is better, because "copying" code is probably
what more people are interested in.

  parent reply	other threads:[~2024-02-24 10:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-23 18:48 bug#69345: 29.2; Quick Help shows wrong key binding for "kill region" Gómez Ocaña Pablo
2024-02-24 10:00 ` Eli Zaretskii
2024-02-24 10:02 ` Philip Kaludercic [this message]
2024-02-24 10:41   ` Eli Zaretskii

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=87v86e6uyq.fsf@posteo.net \
    --to=philipk@posteo.net \
    --cc=69345@debbugs.gnu.org \
    --cc=pablo.gomezo@uah.es \
    /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.