unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Dieter Wilhelm <dieter@duenenhof-wilhelm.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Frame symbol in the mode line on a windowing system
Date: Wed, 25 Jul 2007 02:34:43 +0200	[thread overview]
Message-ID: <87fy3dnwws.fsf@debby.local.net> (raw)
In-Reply-To: <ud4ylo9wz.fsf@gnu.org> (Eli Zaretskii's message of "Sat\, 21 Jul 2007 22\:04\:44 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Dieter Wilhelm <dieter@duenenhof-wilhelm.de>
>> Date: Sat, 21 Jul 2007 20:11:04 +0200
>> 
>> Does anybody have code to display Frame names or numbers or symbols in
>> the mode line on an (X-)Window system?  I do not see on which frame
>> I'm working when in fullscreen mode and in terminal mode there are
>> hints F1, F2, etc.
>
> F1, F2, etc. are _not_ hints, they are actual names of the frames on a
> tty.  You can change that with the set-frame-name commands (and later
> switch to a frame with a specific name with select-frame-by-name).
>
> I think %F is what you want -- it's replaced with the frame name.
> Emacs uses the variable mode-line-frame-identification for it, which
> is computed differently on X and on a tty.

Hi Eli

Thanks again for the hint.  It might be helpful when

  (info-other-window "(elisp)%-Constructs") 

would mention that the %-constructs are not always working when used
in a string like this

  (setq mode-line-frame-identification "-%F ") ; this is here not working

but rather in a list

  (setq mode-line-frame-identification '("-%F "))

I found it finally documented for the variable mode-line-format.  For
somebody using them for the first time its not immediately obvious.
Just my two €Cents.

      Dieter
-- 
    Best wishes

    H. Dieter Wilhelm
    Darmstadt, Germany

      reply	other threads:[~2007-07-25  0:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-21 18:11 Frame symbol in the mode line on a windowing system Dieter Wilhelm
2007-07-21 19:04 ` Eli Zaretskii
2007-07-25  0:34   ` Dieter Wilhelm [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

  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=87fy3dnwws.fsf@debby.local.net \
    --to=dieter@duenenhof-wilhelm.de \
    --cc=eliz@gnu.org \
    --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).