diff options
| author | Stefan Monnier | 2006-09-11 07:11:21 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2006-09-11 07:11:21 +0000 |
| commit | a8b7149d7e0b03f9fca1898592f2dd6185ccfbcd (patch) | |
| tree | d4944f8cd4527442d0c1ad8de73f7971f886ce9a /lisp | |
| parent | 3250aca208b13f138747c48b7549b41dfe91f4f6 (diff) | |
| download | emacs-a8b7149d7e0b03f9fca1898592f2dd6185ccfbcd.tar.gz emacs-a8b7149d7e0b03f9fca1898592f2dd6185ccfbcd.zip | |
(mode-line-buffer-identification-keymap):
Move initialization into declaration.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/bindings.el | 30 |
2 files changed, 21 insertions, 18 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 025e09475da..ac3a50c921e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2006-09-11 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * bindings.el (mode-line-buffer-identification-keymap): | ||
| 4 | Move initialization into declaration. | ||
| 5 | |||
| 1 | 2006-09-10 Kim F. Storm <storm@cua.dk> | 6 | 2006-09-10 Kim F. Storm <storm@cua.dk> |
| 2 | 7 | ||
| 3 | * ido.el (ido-edit-input, ido-complete, ido-take-first-match) | 8 | * ido.el (ido-edit-input, ido-complete, ido-take-first-match) |
| @@ -30,8 +35,8 @@ | |||
| 30 | 35 | ||
| 31 | 2006-09-09 Richard Stallman <rms@gnu.org> | 36 | 2006-09-09 Richard Stallman <rms@gnu.org> |
| 32 | 37 | ||
| 33 | * textmodes/conf-mode.el (conf-space-mode): Use | 38 | * textmodes/conf-mode.el (conf-space-mode): |
| 34 | hack-local-variables-hook instead of calling hack-local-variables. | 39 | Use hack-local-variables-hook instead of calling hack-local-variables. |
| 35 | (conf-space-keywords-override): New variable. | 40 | (conf-space-keywords-override): New variable. |
| 36 | (conf-space-mode-internal): New subroutine. Reinit Font Lock mode. | 41 | (conf-space-mode-internal): New subroutine. Reinit Font Lock mode. |
| 37 | (conf-space-mode): Always make conf-space-keywords and | 42 | (conf-space-mode): Always make conf-space-keywords and |
diff --git a/lisp/bindings.el b/lisp/bindings.el index 65ff8b0f916..4100a4d0df4 100644 --- a/lisp/bindings.el +++ b/lisp/bindings.el | |||
| @@ -337,24 +337,22 @@ Keymap to display on minor modes.") | |||
| 337 | (put 'mode-line-position 'standard-value | 337 | (put 'mode-line-position 'standard-value |
| 338 | (list `(quote ,standard-mode-line-position)))) | 338 | (list `(quote ,standard-mode-line-position)))) |
| 339 | 339 | ||
| 340 | (defvar mode-line-buffer-identification-keymap nil "\ | 340 | (defvar mode-line-buffer-identification-keymap |
| 341 | ;; Add menu of buffer operations to the buffer identification part | ||
| 342 | ;; of the mode line.or header line. | ||
| 343 | (let ((map (make-sparse-keymap))) | ||
| 344 | ;; Bind down- events so that the global keymap won't ``shine | ||
| 345 | ;; through''. | ||
| 346 | (define-key map [mode-line mouse-1] 'mode-line-previous-buffer) | ||
| 347 | (define-key map [header-line down-mouse-1] 'ignore) | ||
| 348 | (define-key map [header-line mouse-1] 'mode-line-previous-buffer) | ||
| 349 | (define-key map [header-line down-mouse-3] 'ignore) | ||
| 350 | (define-key map [mode-line mouse-3] 'mode-line-next-buffer) | ||
| 351 | (define-key map [header-line down-mouse-3] 'ignore) | ||
| 352 | (define-key map [header-line mouse-3] 'mode-line-next-buffer) | ||
| 353 | map) "\ | ||
| 341 | Keymap for what is displayed by `mode-line-buffer-identification'.") | 354 | Keymap for what is displayed by `mode-line-buffer-identification'.") |
| 342 | 355 | ||
| 343 | ;; Add menu of buffer operations to the buffer identification part | ||
| 344 | ;; of the mode line.or header line. | ||
| 345 | ; | ||
| 346 | (let ((map (make-sparse-keymap))) | ||
| 347 | ;; Bind down- events so that the global keymap won't ``shine | ||
| 348 | ;; through''. | ||
| 349 | (define-key map [mode-line mouse-1] 'mode-line-previous-buffer) | ||
| 350 | (define-key map [header-line down-mouse-1] 'ignore) | ||
| 351 | (define-key map [header-line mouse-1] 'mode-line-previous-buffer) | ||
| 352 | (define-key map [header-line down-mouse-3] 'ignore) | ||
| 353 | (define-key map [mode-line mouse-3] 'mode-line-next-buffer) | ||
| 354 | (define-key map [header-line down-mouse-3] 'ignore) | ||
| 355 | (define-key map [header-line mouse-3] 'mode-line-next-buffer) | ||
| 356 | (setq mode-line-buffer-identification-keymap map)) | ||
| 357 | |||
| 358 | (defun propertized-buffer-identification (fmt) | 356 | (defun propertized-buffer-identification (fmt) |
| 359 | "Return a list suitable for `mode-line-buffer-identification'. | 357 | "Return a list suitable for `mode-line-buffer-identification'. |
| 360 | FMT is a format specifier such as \"%12b\". This function adds | 358 | FMT is a format specifier such as \"%12b\". This function adds |