(mode-line-frame-control): New function, caters to pc' `window system''.

(mode-line-frame-identification): Use it instead of accessing window-system
directly.
This commit is contained in:
Eli Zaretskii
2008-08-25 21:51:40 +00:00
parent 4e14951ff2
commit fa5cde3676
2 changed files with 18 additions and 1 deletions

View File

@@ -1,3 +1,10 @@
2008-08-25 Eli Zaretskii <eliz@gnu.org>
* bindings.el (mode-line-frame-control): New function, caters to
`pc' ``window system''.
(mode-line-frame-identification): Use it instead of accessing
window-system directly.
2008-08-25 Juri Linkov <juri@jurta.org>
* textmodes/text-mode.el (text-mode-map): Unbind "\es" from

View File

@@ -215,7 +215,17 @@ mnemonics of the following coding systems:
(make-variable-buffer-local 'mode-line-mule-info)
(defvar mode-line-frame-identification '(window-system " " "-%F ")
;; MSDOS frames have window-system, but want the Fn identification.
(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 (window-system))
(eq (window-system) 'pc))
"-%F "
" "))
(defvar mode-line-frame-identification
(list (mode-line-frame-control))
"Mode-line control to describe the current frame.")
(defvar mode-line-process nil "\