diff options
| author | Eli Zaretskii | 2008-08-25 21:51:40 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2008-08-25 21:51:40 +0000 |
| commit | fa5cde3676abdefc7d349f1ee3a7d8f033b209a2 (patch) | |
| tree | fc714b2ff71a86befb320c1ad8d718a63919928e | |
| parent | 4e14951ff291dce2ccd8d1b31bad8352316d8647 (diff) | |
| download | emacs-fa5cde3676abdefc7d349f1ee3a7d8f033b209a2.tar.gz emacs-fa5cde3676abdefc7d349f1ee3a7d8f033b209a2.zip | |
(mode-line-frame-control): New function, caters to `pc' ``window system''.
(mode-line-frame-identification): Use it instead of accessing window-system
directly.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/bindings.el | 12 |
2 files changed, 18 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2dea7f36f95..eb66d56e6e7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2008-08-25 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * bindings.el (mode-line-frame-control): New function, caters to | ||
| 4 | `pc' ``window system''. | ||
| 5 | (mode-line-frame-identification): Use it instead of accessing | ||
| 6 | window-system directly. | ||
| 7 | |||
| 1 | 2008-08-25 Juri Linkov <juri@jurta.org> | 8 | 2008-08-25 Juri Linkov <juri@jurta.org> |
| 2 | 9 | ||
| 3 | * textmodes/text-mode.el (text-mode-map): Unbind "\es" from | 10 | * textmodes/text-mode.el (text-mode-map): Unbind "\es" from |
diff --git a/lisp/bindings.el b/lisp/bindings.el index 559c3a35751..818467e567f 100644 --- a/lisp/bindings.el +++ b/lisp/bindings.el | |||
| @@ -215,7 +215,17 @@ mnemonics of the following coding systems: | |||
| 215 | 215 | ||
| 216 | (make-variable-buffer-local 'mode-line-mule-info) | 216 | (make-variable-buffer-local 'mode-line-mule-info) |
| 217 | 217 | ||
| 218 | (defvar mode-line-frame-identification '(window-system " " "-%F ") | 218 | ;; MSDOS frames have window-system, but want the Fn identification. |
| 219 | (defun mode-line-frame-control () | ||
| 220 | "Compute mode-line control for frame identification. | ||
| 221 | Value is used for `mode-line-frame-identification', which see." | ||
| 222 | (if (or (null (window-system)) | ||
| 223 | (eq (window-system) 'pc)) | ||
| 224 | "-%F " | ||
| 225 | " ")) | ||
| 226 | |||
| 227 | (defvar mode-line-frame-identification | ||
| 228 | (list (mode-line-frame-control)) | ||
| 219 | "Mode-line control to describe the current frame.") | 229 | "Mode-line control to describe the current frame.") |
| 220 | 230 | ||
| 221 | (defvar mode-line-process nil "\ | 231 | (defvar mode-line-process nil "\ |