From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: meedstrom--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#55708: (key-description (kbd "C-F")) becomes "C-f" Date: Sun, 29 May 2022 14:34:00 +0000 Message-ID: <19b450018899f6056274b6e2ca2acf6586ef9b9e@teknik.io> Reply-To: meedstrom@teknik.io Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="496250e2-9380-44aa-9950-df905c642905-1" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40443"; mail-complaints-to="usenet@ciao.gmane.io" To: 55708@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 29 17:35:11 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nvKwg-000AK1-Qi for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 29 May 2022 17:35:10 +0200 Original-Received: from localhost ([::1]:45110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvKwf-0000Q8-8q for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 29 May 2022 11:35:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvKwY-0000Pe-W8 for bug-gnu-emacs@gnu.org; Sun, 29 May 2022 11:35:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47721) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nvKwY-0001TG-Mv for bug-gnu-emacs@gnu.org; Sun, 29 May 2022 11:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nvKwY-0004xP-Ej for bug-gnu-emacs@gnu.org; Sun, 29 May 2022 11:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: meedstrom@teknik.io Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 May 2022 15:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55708 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.165383848819030 (code B ref -1); Sun, 29 May 2022 15:35:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 May 2022 15:34:48 +0000 Original-Received: from localhost ([127.0.0.1]:41618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nvKwK-0004ws-7W for submit@debbugs.gnu.org; Sun, 29 May 2022 11:34:48 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:52242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nvKwE-0004we-Jc for submit@debbugs.gnu.org; Sun, 29 May 2022 11:34:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvKwE-00008i-Du for bug-gnu-emacs@gnu.org; Sun, 29 May 2022 11:34:42 -0400 Original-Received: from mail.teknik.io ([5.79.72.163]:50811) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nvKwC-0001OI-4x for bug-gnu-emacs@gnu.org; Sun, 29 May 2022 11:34:42 -0400 dkim-signature: v=1; a=rsa-sha256; d=teknik.io; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From:Subject:Date:Message-ID:To:MIME-Version:Content-Type; bh=clOX1QcR3hjTTDCJPv/0eeuf1FrogeshnudDPrXwY1A=; b=M1eK6LQlNmIdfngciq7tbZk1/++cDMgw+4fIuMfRzRSAoP6IYy+BMF0Rh5ZZuryziaoSG+rYgy+iBE2L6SFFoozcQTSbUhiTjNqqErZSMRi4p58IXrdo0BO0DdwXlUdvFoA8PUUcJWMBWs6Os+XnY9c+XSaop3VeU7Y6LsYe3REXkc4hRHlr8E0kDTWREHjAazVzFgOj04DhVlLZFe0/ZanBXUm1sJwC5a6CiTHv9uZgCN2nREtLnHOXvl SEWfvM3kePLZX6DIThzvcjUGhGFGV6LViDKlkmZ3OKGCRJkX1VAxdh0Gcr6bZCvjBWIV5ArZtCfAMKCzoZs+GFUPEW4g== Original-Received: from mail.teknik.io (TEKNIK-SERVER [5.79.72.163]) by mail.teknik.io with ESMTPSA (version=TLSv1.2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128) ; Sun, 29 May 2022 07:34:00 -0700 Received-SPF: pass client-ip=5.79.72.163; envelope-from=meedstrom@teknik.io; helo=mail.teknik.io X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:233327 Archived-At: --496250e2-9380-44aa-9950-df905c642905-1 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable In Emacs 29, running emacs -Q, we get inconsistent results: (key-description (kbd "M-F")) returns "M-F" (key-description (kbd "H-F")) returns "H-F" (key-description (kbd "A-F")) returns "A-F" but (key-description (kbd "C-F")) returns "C-f" I would have expected to see either "C-F" or "C-S-f". =C2=A0=20 It's=20probably not related to `translate-upper-case-key-bindings' is nil= , it's the same result either way. I don't know if you consider this behavior a bug, but I rely on this func= tion chain to "normalize"=C2=A0 descriptions such as C- to C= -M-.=C2=A0 If there's an alternative way to do that I'd be hap= py to hear about it! Martin In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30,= cairo version 1.16.0) System Description: Guix System Configured using: 'configure CONFIG_SHELL=3D/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5= .1.8/bin/bash SHELL=3D/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bi= n/bash --prefix=3D/gnu/store/bf2n69a7pqj3w22z8702h90l77rh2bkf-emacs-next-pgtk-29= .0.50-0.38d87c4 --enable-fast-install --with-pgtk --with-xwidgets --with-modules --with-cairo --disable-build-details' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS XIM XWIDGETS GTK3 ZLIB Important settings: =C2=A0 value of $EMACSLOADPATH: /home/kept/guix-profiles/emacs/emacs/shar= e/emacs/site-lisp:/gnu/store/bf2n69a7pqj3w22z8702h90l77rh2bkf-emacs-next-= pgtk-29.0.50-0.38d87c4/share/emacs/29.0.50/lisp:/gnu/store/bf2n69a7pqj3w2= 2z8702h90l77rh2bkf-emacs-next-pgtk-29.0.50-0.38d87c4/share/emacs/29.0.50/= lisp =C2=A0 value of $LANG: en_DK.utf8 =C2=A0 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: =C2=A0 tooltip-mode: t =C2=A0 global-eldoc-mode: t =C2=A0 eldoc-mode: t =C2=A0 show-paren-mode: t =C2=A0 electric-indent-mode: t =C2=A0 mouse-wheel-mode: t =C2=A0 tool-bar-mode: t =C2=A0 menu-bar-mode: t =C2=A0 file-name-shadow-mode: t =C2=A0 global-font-lock-mode: t =C2=A0 font-lock-mode: t =C2=A0 blink-cursor-mode: t =C2=A0 line-number-mode: t =C2=A0 indent-tabs-mode: t =C2=A0 transient-mark-mode: t =C2=A0 auto-composition-mode: t =C2=A0 auto-encryption-mode: t =C2=A0 auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media rmc puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date seq gv subr-x byte-opt bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils two-column iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win 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 simple cl-generic 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 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 xwidget-internal dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk multi-tty make-network-process emacs) Memory information: ((conses 16 44769 5884) (symbols 48 5735 1) (strings 32 15969 2383) (string-bytes 1 541844) (vectors 16 12239) (vector-slots 8 171121 8958) (floats 8 21 42) (intervals 56 263 9) (buffers 992 11)) --496250e2-9380-44aa-9950-df905c642905-1 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
In Emacs 29, running emacs -= Q, we get inconsistent results:

(key-descrip= tion (kbd "M-F")) returns "M-F"
(key-description (kbd "H-F")) r= eturns "H-F"
(key-description (kbd "A-F")) returns "A-F"

but

(key-description= (kbd "C-F")) returns "C-f"

I would have expecte= d to see either "C-F" or "C-S-f".

It's probably= not related to `translate-upper-case-key-bindings' is nil, it's the same= result either way.

I don't know if you cons= ider this behavior a bug, but I rely on this function chain to "normalize= " descriptions such as C-<M-backspace> to C-M-<backspace>. If= there's an alternative way to do that I'd be happy to hear about it!
=

Martin

In GNU Emac= s 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo vers= ion 1.16.0)
System Description: Guix System

Configured using:
'configure
CONFIG_SHELL=3D/gn= u/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/bash
SHELL=3D/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.= 1.8/bin/bash
--prefix=3D/gnu/store/bf2n69a7pqj3w22z8702h9= 0l77rh2bkf-emacs-next-pgtk-29.0.50-0.38d87c4
--enable-fast-inst= all --with-pgtk --with-xwidgets --with-modules
--with-cairo --d= isable-build-details'

Configured features:
=
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ J= PEG
JSON LIBOTF LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMP= ER PGTK PNG
RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCR= OLL_BARS XIM XWIDGETS
GTK3 ZLIB

Import= ant settings:
value of $EMACSLOADPATH: /home/kept/guix-profile= s/emacs/emacs/share/emacs/site-lisp:/gnu/store/bf2n69a7pqj3w22z8702h90l77= rh2bkf-emacs-next-pgtk-29.0.50-0.38d87c4/share/emacs/29.0.50/lisp:/gnu/st= ore/bf2n69a7pqj3w22z8702h90l77rh2bkf-emacs-next-pgtk-29.0.50-0.38d87c4/sh= are/emacs/29.0.50/lisp
value of $LANG: en_DK.utf8
l= ocale-coding-system: utf-8-unix

Major mode: Lisp= Interaction

Minor modes in effect:
t= ooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
show-paren-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mod= e: t
file-name-shadow-mode: t
global-font-lock-mode= : t
font-lock-mode: t
blink-cursor-mode: t
line-number-mode: t
indent-tabs-mode: t
transien= t-mark-mode: t
auto-composition-mode: t
auto-encryp= tion-mode: t
auto-compression-mode: t

Load-path shadows:
None found.

Featur= es:
(shadow sort mail-extr emacsbug message mailcap yank-media = rmc puny
dired dired-loaddefs rfc822 mml mml-sec password-cache= epa derived epg
rfc6068 epg-config gnus-util text-property-sea= rch time-date seq gv
subr-x byte-opt bytecomp byte-compile ccon= v mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev g= mm-utils mailheader cl-loaddefs
cl-lib sendmail rfc2047 rfc2045= ietf-drums mm-util mail-prsvr mail-utils
two-column iso-transl= tooltip eldoc paren electric uniquify ediff-hook
vc-hooks lisp= -float-type elisp-mode mwheel term/pgtk-win pgtk-win
term/commo= n-win tool-bar dnd fontset image regexp-opt fringe
tabulated-li= st replace newcomment text-mode lisp-mode prog-mode register
pa= ge tab-bar menu-bar rfn-eshadow isearch easymenu timer select
s= croll-bar mouse jit-lock font-lock syntax font-core term/tty-colors
=
frame minibuffer nadvice simple cl-generic cham georgian utf-8-lang<= /div>
misc-lang vietnamese tibetan thai tai-viet lao korean japanese = eucjp-ms
cp51932 hebrew greek romanian slovak czech european et= hiopic indian
cyrillic chinese composite emoji-zwj charscript c= harprop case-table
epa-hook jka-cmpr-hook help abbrev obarray o= closure cl-preloaded button
loaddefs faces cus-face macroexp fi= les window text-properties overlay
sha1 md5 base64 format env c= ode-pages mule custom widget keymap
hashtable-print-readable ba= ckquote threads xwidget-internal dbusbind
inotify dynamic-setti= ng system-font-setting font-render-setting cairo
gtk pgtk multi= -tty make-network-process emacs)

Memory informat= ion:
((conses 16 44769 5884)
(symbols 48 5735 1)
(strings 32 15969 2383)
(string-bytes 1 541844)
(vectors 16 12239)
(vector-slots 8 171121 8958)
(flo= ats 8 21 42)
(intervals 56 263 9)
(buffers 992 11))

--496250e2-9380-44aa-9950-df905c642905-1--