From: Michael Heerdegen <michael_heerdegen@web.de>
To: Mohammed Sadiq <sadiq@sadiqpk.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to ignore Minibuf for %b in
Date: Fri, 24 Feb 2017 00:50:08 +0100 [thread overview]
Message-ID: <87a89cii1b.fsf@drachen> (raw)
In-Reply-To: <1563990745.72599.1487770575040@webmail.mailhostbox.com> (Mohammed Sadiq's message of "Wed, 22 Feb 2017 19:06:14 +0530 (IST)")
Mohammed Sadiq <sadiq@sadiqpk.org> writes:
> Hi,
>
> I would like to know How to ignore Minibuf when setting titles
> using frame-buffer-format. The current value of my frame-buffer-format
> is "%b - Emacs %&".
>
> It is a little bit annoying that the when I do M-x, the title
> changes to "*Minibuf-1* - Emacs *" I would like to avoid this.
> And when I do M-x, I wish GNU Emacs would keep the previous
> title. Is there some variable I can set, so that GNU Emacs won't
> change title when `point' is in Minibuffer?
I think %b won't do. But frame-title-format follows the format of the
mode-line, so you could use :eval to show the buffer name like you
want. Maybe something like in
#+begin_src emacs-lisp
(setq frame-title-format
'((:eval (buffer-name
(if (minibufferp)
(window-buffer (minibuffer-selected-window))
(current-buffer))))
user-real-login-name "@" system-name))
#+end_src ?
Michael.
prev parent reply other threads:[~2017-02-23 23:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-22 13:36 How to ignore Minibuf for %b in Mohammed Sadiq
2017-02-23 23:50 ` Michael Heerdegen [this message]
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=87a89cii1b.fsf@drachen \
--to=michael_heerdegen@web.de \
--cc=help-gnu-emacs@gnu.org \
--cc=sadiq@sadiqpk.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.