all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Frame symbol in the mode line on a windowing system
@ 2007-07-21 18:11 Dieter Wilhelm
  2007-07-21 19:04 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Dieter Wilhelm @ 2007-07-21 18:11 UTC (permalink / raw)
  To: help-gnu-emacs

Hi

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.

-- 
    Best wishes

    H. Dieter Wilhelm
    Darmstadt, Germany

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

* Re: Frame symbol in the mode line on a windowing system
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2007-07-21 19:04 UTC (permalink / raw)
  To: help-gnu-emacs

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

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

* Re: Frame symbol in the mode line on a windowing system
  2007-07-21 19:04 ` Eli Zaretskii
@ 2007-07-25  0:34   ` Dieter Wilhelm
  0 siblings, 0 replies; 3+ messages in thread
From: Dieter Wilhelm @ 2007-07-25  0:34 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

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

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

end of thread, other threads:[~2007-07-25  0:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.