unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#69345: 29.2; Quick Help shows wrong key binding for "kill region"
@ 2024-02-23 18:48 Gómez Ocaña Pablo
  2024-02-24 10:00 ` Eli Zaretskii
  2024-02-24 10:02 ` Philip Kaludercic
  0 siblings, 2 replies; 4+ messages in thread
From: Gómez Ocaña Pablo @ 2024-02-23 18:48 UTC (permalink / raw)
  To: 69345

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

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.

-----------------------------

In GNU Emacs 29.2 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.20,
 cairo version 1.16.0) of 2024-02-23 built on lcy02-amd64-094
Repository revision: d08a52e901665f1e8608f380486c76af70431cfb
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12008000
System Description: Ubuntu 18.04.6 LTS

Configured using:
 'configure --prefix=/snap/emacs/current/usr --with-x-toolkit=gtk3
 --without-xaw3d --with-modules --with-cairo
 --with-native-compilation=aot --without-pgtk --with-xinput2
 --with-tree-sitter --with-json
 'CFLAGS=-isystem/build/emacs/parts/emacs/install/usr/include
 -isystem/build/emacs/parts/emacs/install/usr/include/x86_64-linux-gnu
 -isystem/build/emacs/stage/usr/include -O2'
 'CPPFLAGS=-isystem/build/emacs/parts/emacs/install/usr/include
 -isystem/build/emacs/parts/emacs/install/usr/include/x86_64-linux-gnu
 -isystem/build/emacs/stage/usr/include'
 'LDFLAGS=-L/build/emacs/parts/emacs/install/lib
 -L/build/emacs/parts/emacs/install/usr/lib
 -L/build/emacs/parts/emacs/install/lib/x86_64-linux-gnu
 -L/build/emacs/parts/emacs/install/usr/lib/x86_64-linux-gnu
 -L/build/emacs/stage/usr/lib''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES
NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3
THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE XIM XINPUT2 XPM
GTK3 ZLIB

Important settings:
  value of $LANG: es_ES.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  buffer-read-only: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message yank-media puny dired
dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config
gnus-util time-date mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils text-property-search rect tango-dark-theme
finder-inf site-start comp comp-cstr warnings icons rx cl-extra
help-mode package browse-url url url-proxy url-privacy url-expand
url-methods url-history url-cookie generate-lisp-file url-domsuf
url-util mailcap url-handlers url-parse auth-source cl-seq eieio
eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp
byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv
eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow
isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting cairo
move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process
native-compile emacs)

Memory information:
((conses 16 229337 13341)
 (symbols 48 12392 0)
 (strings 32 65224 2573)
 (string-bytes 1 1628128)
 (vectors 16 24974)
 (vector-slots 8 471910 22273)
 (floats 8 38 22)
 (intervals 56 509 0)
 (buffers 984 13))

[-- Attachment #2: Type: text/html, Size: 22365 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#69345: 29.2; Quick Help shows wrong key binding for "kill region"
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2024-02-24 10:00 UTC (permalink / raw)
  To: Gómez Ocaña Pablo; +Cc: 69345-done

> From: Gómez Ocaña Pablo
>  <pablo.gomezo@uah.es>
> Date: Fri, 23 Feb 2024 18:48:31 +0000
> msip_labels: 
> 
> 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.

Thanks, fixed on the emacs-29 branch, and closing the bug.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#69345: 29.2; Quick Help shows wrong key binding for "kill region"
  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
  2024-02-24 10:41   ` Eli Zaretskii
  1 sibling, 1 reply; 4+ messages in thread
From: Philip Kaludercic @ 2024-02-24 10:02 UTC (permalink / raw)
  To: Gómez Ocaña Pablo; +Cc: 69345

[-- 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.

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#69345: 29.2; Quick Help shows wrong key binding for "kill region"
  2024-02-24 10:02 ` Philip Kaludercic
@ 2024-02-24 10:41   ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2024-02-24 10:41 UTC (permalink / raw)
  To: Philip Kaludercic; +Cc: pablo.gomezo, 69345

> Cc: 69345@debbugs.gnu.org
> From: Philip Kaludercic <philipk@posteo.net>
> Date: Sat, 24 Feb 2024 10:02:37 +0000
> 
> 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
> 
> or by changing the description:

I went with the former, since the section's name is "Mark & Kill", and
M-w isn't a kill command.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-24 10:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2024-02-24 10:41   ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).