all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alexander Shukaev <haroogan@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Update `minibuffer-line' on buffer switches
Date: Sun, 28 Jun 2015 19:38:11 +0200	[thread overview]
Message-ID: <CAKu-7WzVn_zd8-gkvqs5kZKGRpoRXt21UrigZ_6_qsxZLRk1PQ@mail.gmail.com> (raw)
In-Reply-To: <CAKu-7Wx-6FAJM1ZoTWg+AGn8eTkbWMz7nOCpC1xzegD9n4aaYg@mail.gmail.com>

Looks like the correct solution is

  (add-function :after pre-redisplay-function #'(lambda
                                                    (windows)

(minibuffer-line--update)))

Anyway, it would be nice to have some native support for such updates...
Similar to mode line and frame title.  The potential problem that I see is
that this redisplay is called quite a lot, and I have not only path
information in minibuffer line but also time information, and I assume that
this time information is obtained via system calls, which are inherently
very expensive.  Furthermore, it would be nice to have hook(s)
corresponding to buffer switching, e.g. tracking an event of entering
(transferring focus) to another buffer.  Wouldn't Emacs 25 benefit the
flexibility offered by such hooks?  What do you think Stefan?

Regards,
Alexander


  reply	other threads:[~2015-06-28 17:38 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
2015-06-27 21:59   ` Stefan Monnier
2015-06-28 17:19     ` Alexander Shukaev
2015-06-28 17:38       ` Alexander Shukaev [this message]
     [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

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

  git send-email \
    --in-reply-to=CAKu-7WzVn_zd8-gkvqs5kZKGRpoRXt21UrigZ_6_qsxZLRk1PQ@mail.gmail.com \
    --to=haroogan@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.