From: Eli Zaretskii <eliz@gnu.org>
To: bruce.connor.am@gmail.com
Cc: emacs-devel@gnu.org
Subject: Re: Increasing the rate of modeline display
Date: Fri, 06 Mar 2015 10:04:55 +0200 [thread overview]
Message-ID: <83oao6o8k8.fsf@gnu.org> (raw)
In-Reply-To: <CAAdUY-LnmsZ2jQ_ov05VCv_Ckf_E4TZ+1Y+ESMubGvYpN8YZ5Q@mail.gmail.com>
> Date: Thu, 5 Mar 2015 17:24:56 -0300
> From: Artur Malabarba <bruce.connor.am@gmail.com>
>
> Is there a way to (temporarily) increase the rate at which the mode line is
> redisplayed?
>
> I was trying to write a package that adds a spinner to the mode line (to
> indicate ongoing operations), but I hit a wall because the mode line sometimes
> takes many seconds to redisplay.
You cannot increase the rate of redisplay, because it is already "as
fast as possible": Emacs enters redisplay whenever the Lisp
interpreter has nothing else to do. There are no Emacs-induced delays
that you could slash, AFAIK.
In particular, any time the mode line changes it will be redisplayed
immediately when Emacs has a chance to do so. "Takes many seconds"
sounds like something I never saw, except when some Lisp code is
running during that time.
If you have Lisp code running and want to initiate redisplay while
Lisp is still running, then yes, it could be a bit tricky. But it
isn't clear to me that this is your case, especially as you are
talking about "rate".
So I guess you aren't telling us something important that prevents
redisplay from kicking in in your case. Please add details, or post a
simple self-contained example of the problem.
next prev parent reply other threads:[~2015-03-06 8:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAAdUY-LLaSjRgx3FXi1OdrhS6EgBkhrLknjBW5EKMdhuHAJUeA@mail.gmail.com>
2015-03-05 20:24 ` Increasing the rate of modeline display Artur Malabarba
2015-03-06 8:04 ` Eli Zaretskii [this message]
2015-03-06 8:50 ` Artur Malabarba
2015-03-06 9:12 ` Artur Malabarba
2015-03-06 9:13 ` Artur Malabarba
2015-03-06 10:20 ` Eli Zaretskii
2015-03-06 11:20 ` Artur Malabarba
2015-03-06 11:34 ` Eli Zaretskii
2015-03-06 13:24 ` Thien-Thi Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83oao6o8k8.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=bruce.connor.am@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).