unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to ignore Minibuf for %b in
@ 2017-02-22 13:36 Mohammed Sadiq
  2017-02-23 23:50 ` Michael Heerdegen
  0 siblings, 1 reply; 2+ messages in thread
From: Mohammed Sadiq @ 2017-02-22 13:36 UTC (permalink / raw)
  To: help-gnu-emacs

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?

Please CC me, as I'm not subscribed to the list.

Thanks in advance.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to ignore Minibuf for %b in
  2017-02-22 13:36 How to ignore Minibuf for %b in Mohammed Sadiq
@ 2017-02-23 23:50 ` Michael Heerdegen
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Heerdegen @ 2017-02-23 23:50 UTC (permalink / raw)
  To: Mohammed Sadiq; +Cc: help-gnu-emacs

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.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-23 23:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-22 13:36 How to ignore Minibuf for %b in Mohammed Sadiq
2017-02-23 23:50 ` Michael Heerdegen

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