GNU bug report logs - #38775
(kbd "C-x ( ... C-x )") gulps "C-x (" and "C-x )"

Previous Next

Package: emacs;

Reported by: Kritixi Lithos <kritixilithos <at> gmail.com>

Date: Sat, 28 Dec 2019 15:20:01 UTC

Severity: minor

Fixed in version 29.1

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Kritixi Lithos <kritixilithos <at> gmail.com>
Cc: eliz <at> gnu.org, 38775 <at> debbugs.gnu.org, Andreas Schwab <schwab <at> linux-m68k.org>
Subject: bug#38775: (kbd "C-x ( ... C-x )") gulps "C-x (" and "C-x )"
Date: Tue, 03 May 2022 16:21:50 +0200
Kritixi Lithos <kritixilithos <at> gmail.com> writes:

> So how would you solve the original problem of calling emacs
> keystrokes with potential keyboard macros inside them?
> `command-execute` appears to use `execute-kbd-macro` according to the
> source, so trying `command-execute` on each keystroke does not work as
> intended with `C-x ( ... C-x )` among the commands.

I've now fixed this in Emacs 29.  `key-parse' now returns [24 40 4 24
41] for that sequence, while `kbd' maintains the backwards-compat code.
(This has been broken for half a year and nobody noticed -- in Emacs 29,
(kbd "C-x ( C-d C-x )") returned "" instead of "^D", so it's debatable
whether it makes sense to keep the compat code, but at least we do for
now.

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




This bug report was last modified 3 years and 21 days ago.

Previous Next


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