unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#55842: 29.0.50; Using shorthand syntax in keymap-global-set
@ 2022-06-08  9:48 Arash Esbati
  2022-06-09 13:35 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: Arash Esbati @ 2022-06-08  9:48 UTC (permalink / raw)
  To: 55842

Hi all,

I tried to switch from `global-set-key' to `keymap-global-set' and this
is my first observation: I can't use shorthand syntax.  To reproduce:

1. emacs -Q
2. In scratch, eval (key-valid-p "C-TAB") => t
3. In scratch, eval (keymap-global-set "C-TAB" #'other-window)
4. Try 'C-h k Ctrl-Tab' => C-<tab> is undefined
5. In scratch, eval (keymap-global-set "C-<tab>" #'other-window)
6. 'C-h k Ctrl-Tab' returns the expected result.

Am I missing something about shorthands?  Reading the docstring of
`key-valid-p', I thought the item 3. above should also work.  This is
Emacs from master 22d3f0e95a.

Best, Arash





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

end of thread, other threads:[~2022-06-10 22:46 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08  9:48 bug#55842: 29.0.50; Using shorthand syntax in keymap-global-set Arash Esbati
2022-06-09 13:35 ` Lars Ingebrigtsen
2022-06-09 16:08   ` Eli Zaretskii
2022-06-09 16:37     ` Lars Ingebrigtsen
2022-06-09 16:43       ` Lars Ingebrigtsen
2022-06-09 16:55       ` Eli Zaretskii
2022-06-09 17:14         ` Lars Ingebrigtsen
2022-06-09 17:49           ` Eli Zaretskii
2022-06-10 22:46             ` Richard Stallman
2022-06-10  8:32   ` Arash Esbati
2022-06-10  8:57     ` Lars Ingebrigtsen
2022-06-10 10:33       ` Arash Esbati

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