all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alexander Shukaev <haroogan@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Update `minibuffer-line' on buffer switches
Date: Sat, 27 Jun 2015 16:22:06 +0200	[thread overview]
Message-ID: <CAKu-7WzjAn5NYpWG0Lm6gP-8F=5qF1gK7JjLBmfWwgwo_mZAZQ@mail.gmail.com> (raw)

Hello,

Recently Stefan has introduced the `minibuffer-line' package.  I find it
very handy, especially for displaying the full path to either the
`default-directory' or `buffer-file-name'.  Previously, I used
`frame-title-format' for this like so:

(setq-default frame-title-format
              '((:eval
                 (list (user-login-name)
                       "@"
                       (system-name)
                       ":"
                       (abbreviate-file-name (or (buffer-file-name)
                                                 (file-name-as-directory
                                                  default-directory)))))))

and it behaved very well since when one switches buffers, the title is
automatically updated.  The same is true for `mode-line-format'.  Both
variables come from the C source code.  I'm not sure how automatic updating
is implemented for those, but obviously, to make this work with
`minibuffer-line', I'd have to attach `minibuffer-line--update' to some
hook which runs when buffers are switched.  Is there such a hook?  Are
there alternative implementations for this?  Thanks.

Kind regards,
Alexander


             reply	other threads:[~2015-06-27 14:22 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-27 14:22 Alexander Shukaev [this message]
2015-06-27 15:43 ` Update `minibuffer-line' on buffer switches Michael Heerdegen
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

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

  git send-email \
    --in-reply-to='CAKu-7WzjAn5NYpWG0Lm6gP-8F=5qF1gK7JjLBmfWwgwo_mZAZQ@mail.gmail.com' \
    --to=haroogan@gmail.com \
    --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.
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.