[Top][All Lists]

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

Re: read-char-from-minibuffer ends keyboard macro recording

From: Juri Linkov
Subject: Re: read-char-from-minibuffer ends keyboard macro recording
Date: Fri, 15 Nov 2019 00:59:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)

> Hi, there's a problem with recent changes to read-char-from-minibuffer
> (commit 04ab67470706f1c66bdf08e4078ea3dffd79b41e): this function invokes
> (discard-input) at the very beginning, thus making it impossible to use
> it as part of the keyboard macro (through zap-to-char or otherwise).

'(discard-input)' was added to swallow some initial events.
Without it, 'sit-for' in 'minibuffer-message' doesn't wait
2 seconds to display the message.  Such events occur only
at Emacs startup, and they need to be discarded to display
the message for 2 seconds when the minibuffer is activated
to ask a question about loading the desktop or visiting
a file with local variables loaded from the desktop.

We need first to solve the problem with initial events
before removing '(discard-input)'.

reply via email to

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