unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: meedstrom@teknik.io
Cc: 55708@debbugs.gnu.org
Subject: bug#55708: (key-description (kbd "C-F")) becomes "C-f"
Date: Mon, 30 May 2022 01:14:08 +0200	[thread overview]
Message-ID: <87mtf0x77j.fsf@gnus.org> (raw)
In-Reply-To: <19b450018899f6056274b6e2ca2acf6586ef9b9e@teknik.io> (meedstrom@teknik.io's message of "Sun, 29 May 2022 14:34:00 +0000")

meedstrom@teknik.io writes:

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

As others have alluded to, this is for historical reasons, and I'm not
sure that we can change this now.  That is,

(equal (kbd "C-F") (kbd "C-f"))
=> t

(And on terminals, there's no difference between `C-f' and `C-F'.)

However,

(key-description (kbd "C-S-f"))
=> "C-S-f"

That is, if you explicitly put a shift modifier in there, you can
round-trip the key.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  parent reply	other threads:[~2022-05-29 23:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-29 14:34 bug#55708: (key-description (kbd "C-F")) becomes "C-f" meedstrom--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-29 16:20 ` Eli Zaretskii
2022-05-29 16:41 ` Andreas Schwab
2022-05-29 23:14 ` Lars Ingebrigtsen [this message]
2022-06-02  9:40   ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mtf0x77j.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=55708@debbugs.gnu.org \
    --cc=meedstrom@teknik.io \
    /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 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).