aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2008-08-29 09:02:00 +0000
committerEli Zaretskii2008-08-29 09:02:00 +0000
commit2428c57bd12b0e975c57b20d40d693c4e1b307db (patch)
treece63b37f5e7e2d4142fe859f3cfecbb98d0e737f
parent4bf84f7d73ebe52de16916167b47063a89818e4a (diff)
downloademacs-2428c57bd12b0e975c57b20d40d693c4e1b307db.tar.gz
emacs-2428c57bd12b0e975c57b20d40d693c4e1b307db.zip
(mode-line-frame-identification): Fix last change.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/bindings.el11
2 files changed, 11 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ad294332bb3..03e0e8e1e6d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12008-08-29 Eli Zaretskii <eliz@gnu.org>
2
3 * bindings.el (mode-line-frame-identification): Fix last change.
4
12008-08-29 Kenichi Handa <handa@m17n.org> 52008-08-29 Kenichi Handa <handa@m17n.org>
2 6
3 These changes are to adjust the automatic composition for the new 7 These changes are to adjust the automatic composition for the new
diff --git a/lisp/bindings.el b/lisp/bindings.el
index 818467e567f..cab319e1a3c 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -219,14 +219,17 @@ mnemonics of the following coding systems:
219(defun mode-line-frame-control () 219(defun mode-line-frame-control ()
220 "Compute mode-line control for frame identification. 220 "Compute mode-line control for frame identification.
221Value is used for `mode-line-frame-identification', which see." 221Value is used for `mode-line-frame-identification', which see."
222 (if (or (null (window-system)) 222 (if (or (null initial-window-system)
223 (eq (window-system) 'pc)) 223 (eq initial-window-system 'pc))
224 "-%F " 224 "-%F "
225 " ")) 225 " "))
226 226
227(defvar mode-line-frame-identification 227(defvar mode-line-frame-identification " "
228 (list (mode-line-frame-control))
229 "Mode-line control to describe the current frame.") 228 "Mode-line control to describe the current frame.")
229;; We need to defer the call to mode-line-frame-control to the time
230;; the mode line is actually displayed.
231(setq mode-line-frame-identification '(:eval (mode-line-frame-control)))
232(put 'mode-line-frame-identification 'risky-local-variable t)
230 233
231(defvar mode-line-process nil "\ 234(defvar mode-line-process nil "\
232Mode-line control for displaying info on process status. 235Mode-line control for displaying info on process status.