diff options
| author | Stefan Monnier | 2007-01-03 03:37:15 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-01-03 03:37:15 +0000 |
| commit | 51443e4f0d2efc290eec39805eda84769a2226d7 (patch) | |
| tree | fb0c10f0b47df8fa45074fa302eb1caca0e67512 | |
| parent | 33c053f464bb45f7fc760b659bb109fbf180ba92 (diff) | |
| download | emacs-51443e4f0d2efc290eec39805eda84769a2226d7.tar.gz emacs-51443e4f0d2efc290eec39805eda84769a2226d7.zip | |
(iswitchb-global-map): Use command-remapping if available.
| -rw-r--r-- | lisp/ChangeLog | 22 | ||||
| -rw-r--r-- | lisp/iswitchb.el | 17 |
2 files changed, 21 insertions, 18 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f8aff251989..c6e4cfc1c7a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2007-01-03 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * iswitchb.el (iswitchb-global-map): Use command-remapping if available. | ||
| 4 | |||
| 1 | 2007-01-02 Juanma Barranquero <lekktu@gmail.com> | 5 | 2007-01-02 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 6 | ||
| 3 | * emulation/viper.el (viper-custom-file-name, viper-mode): | 7 | * emulation/viper.el (viper-custom-file-name, viper-mode): |
| @@ -19,7 +23,7 @@ | |||
| 19 | * progmodes/cfengine.el (cfengine-font-lock-syntactic-keywords): | 23 | * progmodes/cfengine.el (cfengine-font-lock-syntactic-keywords): |
| 20 | Fix format of value. | 24 | Fix format of value. |
| 21 | 25 | ||
| 22 | * cus-edit.el (customize-unsaved): Renamed from customize-customized. | 26 | * cus-edit.el (customize-unsaved): Rename from customize-customized. |
| 23 | Change messages accordingly. | 27 | Change messages accordingly. |
| 24 | (customize-customized): Now alias. | 28 | (customize-customized): Now alias. |
| 25 | 29 | ||
| @@ -29,8 +33,8 @@ | |||
| 29 | 33 | ||
| 30 | 2007-01-01 Alan Mackenzie <acm@muc.de> | 34 | 2007-01-01 Alan Mackenzie <acm@muc.de> |
| 31 | 35 | ||
| 32 | * progmodes/cc-engine.el (c-guess-basic-syntax, case 5N): Check | 36 | * progmodes/cc-engine.el (c-guess-basic-syntax, case 5N): |
| 33 | the format of c-state-cache is valid for an optimisation before | 37 | Check the format of c-state-cache is valid for an optimisation before |
| 34 | using it. | 38 | using it. |
| 35 | 39 | ||
| 36 | * progmodes/cc-engine.el (c-guess-basic-syntax): New case 5Q "we | 40 | * progmodes/cc-engine.el (c-guess-basic-syntax): New case 5Q "we |
| @@ -68,8 +72,8 @@ | |||
| 68 | * progmodes/cc-mode.el: Bind C-M-a and C-M-e to | 72 | * progmodes/cc-mode.el: Bind C-M-a and C-M-e to |
| 69 | c-\(beginning\|end\)-of-defun by default. | 73 | c-\(beginning\|end\)-of-defun by default. |
| 70 | 74 | ||
| 71 | * progmodes/cc-align.el (c-lineup-gnu-DEFUN-intro-cont): New | 75 | * progmodes/cc-align.el (c-lineup-gnu-DEFUN-intro-cont): |
| 72 | line-up function, for the DEFUN macro in the Emacs C sources. | 76 | New line-up function, for the DEFUN macro in the Emacs C sources. |
| 73 | Only used in "gnu" style. | 77 | Only used in "gnu" style. |
| 74 | 78 | ||
| 75 | * progmodes/cc-styles.el (c-style-alist): Use this new function in | 79 | * progmodes/cc-styles.el (c-style-alist): Use this new function in |
| @@ -95,8 +99,8 @@ | |||
| 95 | (c-beginning-of-decl-1): Whilst searching for "=" as evidence of a | 99 | (c-beginning-of-decl-1): Whilst searching for "=" as evidence of a |
| 96 | stmt boundary, check for "operator=", etc. | 100 | stmt boundary, check for "operator=", etc. |
| 97 | 101 | ||
| 98 | * progmodes/cc-mode.el (c-postprocess-file-styles): Bind | 102 | * progmodes/cc-mode.el (c-postprocess-file-styles): |
| 99 | inhibit-read-only to t, around the call to | 103 | Bind inhibit-read-only to t, around the call to |
| 100 | c-remove-any-local-eval-or-mode-variables, so that it works on a | 104 | c-remove-any-local-eval-or-mode-variables, so that it works on a |
| 101 | RO file. | 105 | RO file. |
| 102 | 106 | ||
| @@ -275,9 +279,9 @@ | |||
| 275 | 279 | ||
| 276 | 2006-12-25 Michael R. Mauger <mmaug@yahoo.com> | 280 | 2006-12-25 Michael R. Mauger <mmaug@yahoo.com> |
| 277 | 281 | ||
| 278 | * progmodes/sql.el (sql-mode-abbrev-table): Corrected initialization. | 282 | * progmodes/sql.el (sql-mode-abbrev-table): Correct initialization. |
| 279 | (sql-mode-syntax-table): Disable double quoted strings. | 283 | (sql-mode-syntax-table): Disable double quoted strings. |
| 280 | (sql-mode-font-lock-object-name): Added TYPE and TYPE BODY. | 284 | (sql-mode-font-lock-object-name): Add TYPE and TYPE BODY. |
| 281 | 285 | ||
| 282 | 2006-12-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 286 | 2006-12-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 283 | 287 | ||
diff --git a/lisp/iswitchb.el b/lisp/iswitchb.el index 93d4755cf3a..98fad7bf824 100644 --- a/lisp/iswitchb.el +++ b/lisp/iswitchb.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; iswitchb.el --- switch between buffers using substrings | 1 | ;;; iswitchb.el --- switch between buffers using substrings |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, |
| 4 | ;; 2005, 2006 Free Software Foundation, Inc. | 4 | ;; 2005, 2006, 2007 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Stephen Eglen <stephen@gnu.org> | 6 | ;; Author: Stephen Eglen <stephen@gnu.org> |
| 7 | ;; Maintainer: Stephen Eglen <stephen@gnu.org> | 7 | ;; Maintainer: Stephen Eglen <stephen@gnu.org> |
| @@ -495,14 +495,13 @@ interfere with other minibuffer usage.") | |||
| 495 | 495 | ||
| 496 | (defvar iswitchb-global-map | 496 | (defvar iswitchb-global-map |
| 497 | (let ((map (make-sparse-keymap))) | 497 | (let ((map (make-sparse-keymap))) |
| 498 | (substitute-key-definition 'switch-to-buffer ; normally C-x b | 498 | (dolist (b '((switch-to-buffer . iswitchb-buffer) |
| 499 | 'iswitchb-buffer map global-map) | 499 | (switch-to-buffer-other-window . iswitchb-buffer-other-window) |
| 500 | (substitute-key-definition 'switch-to-buffer-other-window ; C-x 4 b | 500 | (switch-to-buffer-other-frame . iswitchb-buffer-other-frame) |
| 501 | 'iswitchb-buffer-other-window map global-map) | 501 | (display-buffer . iswitchb-display-buffer))) |
| 502 | (substitute-key-definition 'switch-to-buffer-other-frame ; C-x 5 b | 502 | (if (fboundp 'command-remapping) |
| 503 | 'iswitchb-buffer-other-frame map global-map) | 503 | (define-key map (vector 'remap (car b)) (cdr b)) |
| 504 | (substitute-key-definition 'display-buffer ; C-x 4 C-o | 504 | (substitute-key-definition (car b) (cdr b) map global-map))) |
| 505 | 'iswitchb-display-buffer map global-map) | ||
| 506 | map) | 505 | map) |
| 507 | "Global keymap for `iswitchb-mode'.") | 506 | "Global keymap for `iswitchb-mode'.") |
| 508 | 507 | ||