GNU bug report logs - #47785
28.0.50; kmacro-edit-lossage fails when \C-hl is not bound to view-lossage

Previous Next

Package: emacs;

Reported by: Ihor Radchenko <yantar92 <at> gmail.com>

Date: Thu, 15 Apr 2021 03:54:02 UTC

Severity: minor

Tags: confirmed, fixed

Found in version 28.0.50

Fixed in version 28.1

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

Bug is archived. No further changes may be made.

Full log


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Ihor Radchenko <yantar92 <at> gmail.com>
Cc: 47785 <at> debbugs.gnu.org
Subject: Re: bug#47785: 28.0.50; kmacro-edit-lossage fails when \C-hl is not
 bound to view-lossage
Date: Tue, 04 May 2021 12:48:20 +0200
Ihor Radchenko <yantar92 <at> gmail.com> writes:

> I just encountered error trying to run C-x C-k l (kmacro-edit-lossage).
> The error was "Key sequence C-h l is not defined".
>
> The reason is my personal key bindings. I have rebound C-h key to some
> other command as there is <F1>- prefix to do the same thing anyway.
>
> However, breakage of kmacro-edit-lossage is unexpected. I do not think
> that it should depend on the C-h l to be bound to view-lossage.

I can confirm that

(global-set-key "\C-hl" 'undefined)
C-x C-k l

then signals an error.  But I'm getting

Debugger entered--Lisp error: (error "Key sequence C-h l is not a keyboard macro")

in Emacs 28.

I've just taken a very quick look at the command, and I'm guessing it
has something to do with:

	    ((or (memq cmd '(view-lossage electric-view-lossage))
                 (memq cmd-noremap '(view-lossage electric-view-lossage)))
	     (setq mac (recent-keys))

mac ends up being

#<subr undefined>

which leads to bugging out.  Does anybody immediately see what this code
is supposed to do here, and can fix this?  If not, I'll poke at it some
more tomorrow; no more time today.

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




This bug report was last modified 4 years and 74 days ago.

Previous Next


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