GNU bug report logs - #64927
30.0.50; kill-ring with no X

Previous Next

Package: emacs;

Reported by: Colin Baxter <m43cap <at> yandex.com>

Date: Sat, 29 Jul 2023 09:48:02 UTC

Severity: normal

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: m43cap <at> yandex.com, larsi <at> gnus.org, 64927 <at> debbugs.gnu.org
Subject: Re: bug#64927: 30.0.50; kill-ring with no X
Date: Thu, 03 Aug 2023 12:30:36 -0400
>> IOW, this is a fundamental incompatibility introduced by the support for
>> this new [<KBDSTRING>] format in `define-key`: keys cannot be arbitrary
>> objects any more (among other things they can't be strings any more).
> Hmm... that's bad, isn't it?  Menus always supported strings like
> that, so we have now lost that?

Yes, tho admittedly such unconventional keys had various rough corners
(e.g. they triggered a few bugs over the years).

I think this problem was noticed when the new feature was introduced and
we fixed the generation of the kill-ring menu, but apparently nobody
fixed the problem in the second part of the code which generates the
kill-ring (I remember I mentioned at the time that we should try and
consolidate those two code paths).

> Do you see any reasonably practical way to get that back?

The best we can do is to use `key-valid-p` as a best-effort test to
decide whether we're in the presence of the new or the old format, but
it will inevitably suffer from false positives/negatives.


        Stefan





This bug report was last modified 2 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.