GNU bug report logs - #55708
(key-description (kbd "C-F")) becomes "C-f"

Previous Next

Package: emacs;

Reported by: meedstrom <at> teknik.io

Date: Sun, 29 May 2022 15:35:02 UTC

Severity: normal

Tags: wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: meedstrom <at> teknik.io
Cc: 55708 <at> debbugs.gnu.org
Subject: Re: bug#55708: (key-description (kbd "C-F")) becomes "C-f"
Date: Mon, 30 May 2022 01:14:08 +0200
meedstrom <at> 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




This bug report was last modified 2 years and 359 days ago.

Previous Next


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