]> git.eshelyaron.com Git - emacs.git/commitdiff
(mode-line-frame-control, mode-line-frame-identification): Fix last change.
authorEli Zaretskii <eliz@gnu.org>
Fri, 29 Aug 2008 17:56:33 +0000 (17:56 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 29 Aug 2008 17:56:33 +0000 (17:56 +0000)
lisp/bindings.el

index cab319e1a3c1561277c9756ea7f8d132b137040c..560df38e01d46669c7688a53d2472aa07eaecbba 100644 (file)
@@ -219,16 +219,15 @@ mnemonics of the following coding systems:
 (defun mode-line-frame-control ()
   "Compute mode-line control for frame identification.
 Value is used for `mode-line-frame-identification', which see."
-  (if (or (null initial-window-system)
-         (eq initial-window-system 'pc))
+  (if (or (null window-system)
+         (eq window-system 'pc))
       "-%F  "
     "  "))
 
-(defvar mode-line-frame-identification "  "
-  "Mode-line control to describe the current frame.")
 ;; We need to defer the call to mode-line-frame-control to the time
 ;; the mode line is actually displayed.
-(setq mode-line-frame-identification '(:eval (mode-line-frame-control)))
+(defvar mode-line-frame-identification '(:eval (mode-line-frame-control))
+  "Mode-line control to describe the current frame.")
 (put 'mode-line-frame-identification 'risky-local-variable t)
 
 (defvar mode-line-process nil "\