Re: 'Strange' changes in status line

From:

Glenn Morris

Subject:

Re: 'Strange' changes in status line

Date:

Fri, 29 Aug 2008 02:34:22 -0400

User-agent:

Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Eli Zaretskii wrote:
> Does this change fix the problem on X? (I cannot try this on X right
> now, but I verified that it works on a tty, MS-Windows, and MS-DOS.)
Afraid not (guess it gets eval'd during dumping).
In any case, an approach like that is not going to work for multi-tty
with mixed X and tty frames. You need something that's eval'd at
runtime. This seems to work:
(setq mode-line-frame-identification '(:eval (mode-line-frame-control)))
(put 'mode-line-frame-identification 'risky-local-variable t)