aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2000-03-12 15:19:44 +0000
committerDave Love2000-03-12 15:19:44 +0000
commit2b4b2add08925d5daf48e63e3afeb339ba1a3131 (patch)
tree9c4cc4fa359e89fcace6b30209b10012ad1dda7e
parent8ed92cf0f2b5e461cba2fd05198c5be3d105f1b6 (diff)
downloademacs-2b4b2add08925d5daf48e63e3afeb339ba1a3131.tar.gz
emacs-2b4b2add08925d5daf48e63e3afeb339ba1a3131.zip
(mode-line-format): Fix line-number and
column-number items. Add help-echo for the background. (mode-line-mule-info): Modify help-echo.
-rw-r--r--lisp/bindings.el46
1 files changed, 29 insertions, 17 deletions
diff --git a/lisp/bindings.el b/lisp/bindings.el
index 976996c6f7c..e8b92b54e88 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -88,7 +88,7 @@ corresponding to the mode line clicked."
88 (propertize current-input-method-title 88 (propertize current-input-method-title
89 'help-echo (concat ,(purecopy "Input method: ") 89 'help-echo (concat ,(purecopy "Input method: ")
90 current-input-method 90 current-input-method
91 ,(purecopy ". mouse-2 toggles, \ 91 ,(purecopy ". mouse-2 disables, \
92mouse-3 describes")) 92mouse-3 describes"))
93 'local-map mode-line-input-method-map))) 93 'local-map mode-line-input-method-map)))
94 ,(propertize "%Z" 94 ,(propertize "%Z"
@@ -133,22 +133,32 @@ Normally nil in most modes, since there is no process to display.")
133(make-variable-buffer-local 'mode-line-modified) 133(make-variable-buffer-local 'mode-line-modified)
134 134
135(setq-default mode-line-format 135(setq-default mode-line-format
136 (list (purecopy "-") 136 (let* ((help-echo
137 'mode-line-mule-info 137 ;; The multi-line message doesn't work terribly well on the
138 'mode-line-modified 138 ;; bottom mode line... Better ideas?
139 'mode-line-frame-identification 139;;; "\
140 'mode-line-buffer-identification 140;;; mouse-1: select window, mouse-2: delete others, mouse-3: delete,
141 (purecopy " ") 141;;; drag-mouse-1: resize, C-mouse-2: split horizontally"
142 'global-mode-string 142 "mouse-1: select window, mouse-2: delete others, mouse-3: delete ...")
143 (purecopy " %[(") 143 (dashes (propertize "--" 'help-echo help-echo)))
144 '(:eval (mode-line-mode-name)) 'mode-line-process 'minor-mode-alist 144 (list
145 (purecopy "%n") 145 (propertize "-" 'help-echo help-echo)
146 (purecopy ")%]--") 146 'mode-line-mule-info
147 '(which-func-mode ("" which-func-format "--")) 147 'mode-line-modified
148 (purecopy '(line-number-mode "L%l--")) 148 'mode-line-frame-identification
149 (purecopy '(column-number-mode "C%c--")) 149 'mode-line-buffer-identification
150 (purecopy '(-3 . "%p")) 150 (propertize " " 'help-echo help-echo)
151 (purecopy "-%-"))) 151 'global-mode-string
152 (propertize " %[(" 'help-echo help-echo)
153 '(:eval (mode-line-mode-name)) 'mode-line-process 'minor-mode-alist
154 (propertize "%n" 'help-echo "mouse-2: widen"
155 'local-map (make-mode-line-mouse2-map #'widen))
156 (propertize ")%]--" 'help-echo help-echo)
157 `(which-func-mode ("" which-func-format ,dashes))
158 `(line-number-mode ("L%l" ,dashes))
159 `(column-number-mode ("C%c" ,dashes))
160 (purecopy '(-3 . "%p"))
161 (propertize "-%-" 'help-echo help-echo))))
152 162
153(defvar minor-mode-alist nil "\ 163(defvar minor-mode-alist nil "\
154Alist saying how to show minor modes in the mode line. 164Alist saying how to show minor modes in the mode line.
@@ -337,6 +347,8 @@ buffer, mouse-2: prev, M-mouse-2: next, mouse-3: buffer menu")
337 ".cp" ".fn" ".ky" ".pg" ".tp" ".vr" 347 ".cp" ".fn" ".ky" ".pg" ".tp" ".vr"
338 ".cps" ".fns" ".kys" ".pgs" ".tps" ".vrs"))) 348 ".cps" ".fns" ".kys" ".pgs" ".tps" ".vrs")))
339 349
350;; Packages should add to this list appropriately when they are
351;; loaded, rather than listing everything here.
340(setq debug-ignored-errors 352(setq debug-ignored-errors
341 '(beginning-of-line beginning-of-buffer end-of-line 353 '(beginning-of-line beginning-of-buffer end-of-line
342 end-of-buffer end-of-file buffer-read-only 354 end-of-buffer end-of-file buffer-read-only