all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Artur Malabarba <bruce.connor.am@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Increasing the rate of modeline display
Date: Fri, 6 Mar 2015 06:12:27 -0300	[thread overview]
Message-ID: <CAAdUY-K0PrQo6OoRYP_EX0f3MNFchRH=2DDR9N6nWq+fh=5G2g@mail.gmail.com> (raw)
In-Reply-To: <83oao6o8k8.fsf@gnu.org>

> 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.

I think I had my wording wrong. General redisplay works fine (I see
the cursor blinking and stuff like that), but the mode-line content
doesn't update if I'm not interacting. I guess what I want is to
`force-mode-line-redisplay' around once per second (right now, it goes
without update indefinitely if the user is not interacting, see
below).

> 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.

I ran the following after emacs -Q.

(add-to-list 'mode-line-format
         '(:eval (number-to-string (cadr (current-time))))
         'append)

This adds a number to the mode-line which changes at every second. If
I'm typing text (or otherwise interacting) then I see it updating
fine. If I just take my hands off the keyboard, then the number stops
updating indefinitely.



  parent reply	other threads:[~2015-03-06  9:12 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
2015-03-06  8:50     ` Artur Malabarba
2015-03-06  9:12     ` Artur Malabarba [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAdUY-K0PrQo6OoRYP_EX0f3MNFchRH=2DDR9N6nWq+fh=5G2g@mail.gmail.com' \
    --to=bruce.connor.am@gmail.com \
    --cc=eliz@gnu.org \
    --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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.