aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2007-07-22 23:10:30 +0000
committerNick Roberts2007-07-22 23:10:30 +0000
commit4c43ca076ac63cde1753ffee0af68b8af64d33d9 (patch)
tree6822de58ced849472c519cb8cdbeac436ddad644
parent9f44484140f19ebcc0d34d95525c087289b91f1c (diff)
downloademacs-4c43ca076ac63cde1753ffee0af68b8af64d33d9.tar.gz
emacs-4c43ca076ac63cde1753ffee0af68b8af64d33d9.zip
(mode-line-remote): New variable.
(help-echo): Add to default values of mode-line-format.
-rw-r--r--lisp/bindings.el17
1 files changed, 17 insertions, 0 deletions
diff --git a/lisp/bindings.el b/lisp/bindings.el
index 5f3279a9ac4..93a28e9cf20 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -248,6 +248,22 @@ Normally nil in most modes, since there is no process to display.")
248 248
249(make-variable-buffer-local 'mode-line-modified) 249(make-variable-buffer-local 'mode-line-modified)
250 250
251(defvar mode-line-remote
252 (list (propertize
253 "%1R"
254 'help-echo (purecopy (lambda (window object point)
255 (format "%s"
256 (save-selected-window
257 (select-window window)
258 (concat
259 (if (file-remote-p default-directory)
260 "Remote: "
261 "Local: ")
262 default-directory)))))))
263 "Mode-line flag to show if default-directory for current buffer is remote.")
264
265(make-variable-buffer-local 'mode-line-remote)
266
251;; Actual initialization is below. 267;; Actual initialization is below.
252(defvar mode-line-position nil 268(defvar mode-line-position nil
253 "Mode-line control for displaying the position in the buffer. 269 "Mode-line control for displaying the position in the buffer.
@@ -287,6 +303,7 @@ Keymap to display on minor modes.")
287 (propertize "-" 'help-echo help-echo) 303 (propertize "-" 'help-echo help-echo)
288 'mode-line-mule-info 304 'mode-line-mule-info
289 'mode-line-modified 305 'mode-line-modified
306 'mode-line-remote
290 'mode-line-frame-identification 307 'mode-line-frame-identification
291 'mode-line-buffer-identification 308 'mode-line-buffer-identification
292 (propertize " " 'help-echo help-echo) 309 (propertize " " 'help-echo help-echo)