unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Update `minibuffer-line' on buffer switches
Date: Sat, 27 Jun 2015 17:43:27 +0200	[thread overview]
Message-ID: <87y4j517j4.fsf@web.de> (raw)
In-Reply-To: CAKu-7WzjAn5NYpWG0Lm6gP-8F=5qF1gK7JjLBmfWwgwo_mZAZQ@mail.gmail.com

Alexander Shukaev <haroogan@gmail.com> writes:

> `minibuffer-line', I'd have to attach `minibuffer-line--update' to some
> hook which runs when buffers are switched.

Indeed, there is only a timer for refreshing.  You must handle updating
yourself if you want it happen automatically in certain situations.

> Is there such a hook?  Are there alternative implementations for this?

There are no hooks in the package defined.  However, for your use case,
`window-configuration-change-hook' seems appropriate.  Of course there
is `post-command-hook' as well.  time-consuming calculations should not
go there of course.

The mode-line etc. are refreshed as part of redisplay.  That can't be
controlled from Lisp.


Regards,

Michael.




  reply	other threads:[~2015-06-27 15:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-27 14:22 Update `minibuffer-line' on buffer switches Alexander Shukaev
2015-06-27 15:43 ` Michael Heerdegen [this message]
2015-06-27 21:59   ` Stefan Monnier
2015-06-28 17:19     ` Alexander Shukaev
2015-06-28 17:38       ` Alexander Shukaev
     [not found]       ` <mailman.5854.1435513096.904.help-gnu-emacs@gnu.org>
2015-06-29  3:36         ` Stefan Monnier
2015-06-29 16:31           ` Alexander Shukaev
2015-06-29 17:00             ` Eli Zaretskii
2015-06-29 19:02               ` Alexander Shukaev
2015-06-29 19:50                 ` Alexander Shukaev
  -- strict thread matches above, loose matches on Subject: below --
2015-06-29 17:15 martin rudalics
2015-06-29 19:00 ` Alexander Shukaev

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=87y4j517j4.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=help-gnu-emacs@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.
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).