bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#47785: 28.0.50; kmacro-edit-lossage fails when \C-hl is not bound to


From: Lars Ingebrigtsen
Subject: 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
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Ihor Radchenko <yantar92@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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]