all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Recognizing active/inactive mode-line in (:eval ...) form in mode-line-string
@ 2013-02-28 11:25 Alessandro Piras
  0 siblings, 0 replies; 2+ messages in thread
From: Alessandro Piras @ 2013-02-28 11:25 UTC (permalink / raw)
  To: help-gnu-emacs

Is there a way to know if the mode-line is active in a (:eval ...)
form inside the mode-line-string?

A simple example:
mode-line-string =>
   ("%e" (:eval (if <condition> "foo" "bar")))

I would like to see "foo" on the mode-line of the active window,
"bar" on the others.

--
AP



^ permalink raw reply	[flat|nested] 2+ messages in thread
[parent not found: <mailman.21116.1362070608.855.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2013-03-01 19:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-28 11:25 Recognizing active/inactive mode-line in (:eval ...) form in mode-line-string Alessandro Piras
     [not found] <mailman.21116.1362070608.855.help-gnu-emacs@gnu.org>
2013-03-01 19:21 ` Michael Heerdegen

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.