[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#20445: excessive redisplay / echo area resizing during byte-compilat
From: |
Stefan Monnier |
Subject: |
bug#20445: excessive redisplay / echo area resizing during byte-compilation |
Date: |
Tue, 28 Apr 2015 23:21:16 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> (apply #'message format args)
> (unless byte-compile--interactive
> (message nil)))
This is the problem: in order to "not emit a message" this code emits
the message and then immediately hides it by emitting "the empty
message" on top of it.
Since `message' redisplays right away (rather than waiting for the next
"idle" moment to perform redisplay, as is the case for normal buffer
changes), this result in a lot of wasted work, and it won't truly do
what was intended:
- If your machine/display is slow enough, you will see it
- If your system "prints" messages by speaking them out loud (e.g. with
emacspeak) you will hear them.
Why not just do:
(when byte-compile--interactive
(apply #'message format args))
?
Stefan
bug#20445: excessive redisplay / echo area resizing during byte-compilation, Eli Zaretskii, 2015/04/28
- bug#20445: excessive redisplay / echo area resizing during byte-compilation,
Stefan Monnier <=
bug#20445: excessive redisplay / echo area resizing during byte-compilation, Artur Malabarba, 2015/04/29
bug#20445: excessive redisplay / echo area resizing during byte-compilation, Eli Zaretskii, 2015/04/29
bug#20445: excessive redisplay / echo area resizing during byte-compilation, Artur Malabarba, 2015/04/29
bug#20445: excessive redisplay / echo area resizing during byte-compilation, Artur Malabarba, 2015/04/29