comparison lisp/bindings.el @ 93161:e3b492a971e1

(standard-mode-line-modes): Avoid duplicating a string.
author Dan Nicolaescu <dann@ics.uci.edu>
date Sun, 23 Mar 2008 18:54:54 +0000
parents c3e303fc7a15
children 41abeabbef6f
comparison
equal deleted inserted replaced
93160:22d835ffa8f7 93161:e3b492a971e1
322 ;; mouse-1: select window, mouse-2: delete others, mouse-3: delete, 322 ;; mouse-1: select window, mouse-2: delete others, mouse-3: delete,
323 ;; drag-mouse-1: resize, C-mouse-2: split horizontally" 323 ;; drag-mouse-1: resize, C-mouse-2: split horizontally"
324 "mouse-1: Select (drag to resize)\n\ 324 "mouse-1: Select (drag to resize)\n\
325 mouse-2: Make current window occupy the whole frame\n\ 325 mouse-2: Make current window occupy the whole frame\n\
326 mouse-3: Remove current window from display") 326 mouse-3: Remove current window from display")
327 (recursive-edit-help-echo "Recursive edit, type C-M-c to get out")
327 (dashes (propertize "--" 'help-echo help-echo)) 328 (dashes (propertize "--" 'help-echo help-echo))
328 (standard-mode-line-format 329 (standard-mode-line-format
329 (list 330 (list
330 "%e" 331 "%e"
331 (propertize "-" 'help-echo help-echo) 332 (propertize "-" 'help-echo help-echo)
343 `(which-func-mode ("" which-func-format ,dashes)) 344 `(which-func-mode ("" which-func-format ,dashes))
344 `(global-mode-string (,dashes global-mode-string)) 345 `(global-mode-string (,dashes global-mode-string))
345 (propertize "-%-" 'help-echo help-echo))) 346 (propertize "-%-" 'help-echo help-echo)))
346 (standard-mode-line-modes 347 (standard-mode-line-modes
347 (list 348 (list
348 (propertize "%[" 'help-echo "Recursive edit, type C-M-c to get out") 349 (propertize "%[" 'help-echo recursive-edit-help-echo)
349 (propertize "(" 'help-echo help-echo) 350 (propertize "(" 'help-echo help-echo)
350 `(:propertize ("" mode-name) 351 `(:propertize ("" mode-name)
351 help-echo "Major mode\n\ 352 help-echo "Major mode\n\
352 mouse-1: Display major mode menu\n\ 353 mouse-1: Display major mode menu\n\
353 mouse-2: Show help for major mode\n\ 354 mouse-2: Show help for major mode\n\
365 (propertize "%n" 'help-echo "mouse-2: Remove narrowing from the current buffer" 366 (propertize "%n" 'help-echo "mouse-2: Remove narrowing from the current buffer"
366 'mouse-face 'mode-line-highlight 367 'mouse-face 'mode-line-highlight
367 'local-map (make-mode-line-mouse-map 368 'local-map (make-mode-line-mouse-map
368 'mouse-2 #'mode-line-widen)) 369 'mouse-2 #'mode-line-widen))
369 (propertize ")" 'help-echo help-echo) 370 (propertize ")" 'help-echo help-echo)
370 (propertize "%]" 'help-echo "Recursive edit, type C-M-c to get out") 371 (propertize "%]" 'help-echo recursive-edit-help-echo)
371 (propertize "--" 'help-echo help-echo))) 372 (propertize "--" 'help-echo help-echo)))
372 373
373 (standard-mode-line-position 374 (standard-mode-line-position
374 `((-3 ,(propertize 375 `((-3 ,(propertize
375 "%p" 376 "%p"