diff options
| author | Stefan Monnier | 2012-09-30 00:00:46 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-09-30 00:00:46 -0400 |
| commit | 34cf6f39526599378cc1d5800e707a8a6e80c8dd (patch) | |
| tree | e4aad5ae56746ec374a894466ff946ffadc2212d | |
| parent | e01c13fea4176aab4ec3dadc9e29e82efe967239 (diff) | |
| download | emacs-34cf6f39526599378cc1d5800e707a8a6e80c8dd.tar.gz emacs-34cf6f39526599378cc1d5800e707a8a6e80c8dd.zip | |
* lisp/winner.el (winner-mode-map): Obey winner-dont-bind-my-keys here.
(minor-mode-map-alist): Remove redundant code.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/winner.el | 14 |
2 files changed, 7 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 093c87eba70..7e41ddc2ad1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2012-09-30 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2012-09-30 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * winner.el (winner-mode-map): Obey winner-dont-bind-my-keys here. | ||
| 4 | (minor-mode-map-alist): Remove redundant code. | ||
| 5 | |||
| 3 | * vc/pcvs.el (cvs-cleanup-collection): Keep entries that are currently | 6 | * vc/pcvs.el (cvs-cleanup-collection): Keep entries that are currently |
| 4 | visited in a buffer. | 7 | visited in a buffer. |
| 5 | (cvs-insert-visited-file): New function. | 8 | (cvs-insert-visited-file): New function. |
diff --git a/lisp/winner.el b/lisp/winner.el index 453330598b6..65b3d30a80c 100644 --- a/lisp/winner.el +++ b/lisp/winner.el | |||
| @@ -64,7 +64,7 @@ | |||
| 64 | :group 'windows) | 64 | :group 'windows) |
| 65 | 65 | ||
| 66 | (defcustom winner-dont-bind-my-keys nil | 66 | (defcustom winner-dont-bind-my-keys nil |
| 67 | "Non-nil means do not use `winner-mode-map' in Winner mode." | 67 | "Non-nil means do not bind keys in Winner mode." |
| 68 | :type 'boolean | 68 | :type 'boolean |
| 69 | :group 'winner) | 69 | :group 'winner) |
| 70 | 70 | ||
| @@ -338,8 +338,9 @@ You may want to include buffer names such as *Help*, *Apropos*, | |||
| 338 | 338 | ||
| 339 | (defvar winner-mode-map | 339 | (defvar winner-mode-map |
| 340 | (let ((map (make-sparse-keymap))) | 340 | (let ((map (make-sparse-keymap))) |
| 341 | (define-key map [(control c) left] 'winner-undo) | 341 | (unless winner-dont-bind-my-keys |
| 342 | (define-key map [(control c) right] 'winner-redo) | 342 | (define-key map [(control c) left] 'winner-undo) |
| 343 | (define-key map [(control c) right] 'winner-redo)) | ||
| 343 | map) | 344 | map) |
| 344 | "Keymap for Winner mode.") | 345 | "Keymap for Winner mode.") |
| 345 | 346 | ||
| @@ -435,12 +436,5 @@ In other words, \"undo\" changes in window configuration." | |||
| 435 | (message "Winner undid undo"))) | 436 | (message "Winner undid undo"))) |
| 436 | (t (error "Previous command was not a `winner-undo'")))) | 437 | (t (error "Previous command was not a `winner-undo'")))) |
| 437 | 438 | ||
| 438 | ;;; To be evaluated when the package is loaded: | ||
| 439 | |||
| 440 | (unless (or (assq 'winner-mode minor-mode-map-alist) | ||
| 441 | winner-dont-bind-my-keys) | ||
| 442 | (push (cons 'winner-mode winner-mode-map) | ||
| 443 | minor-mode-map-alist)) | ||
| 444 | |||
| 445 | (provide 'winner) | 439 | (provide 'winner) |
| 446 | ;;; winner.el ends here | 440 | ;;; winner.el ends here |