diff options
| author | Glenn Morris | 2012-01-25 21:32:56 -0500 |
|---|---|---|
| committer | Glenn Morris | 2012-01-25 21:32:56 -0500 |
| commit | e43273eff03ad9e6c7564057b35a5bf6810935f2 (patch) | |
| tree | 32429e5f421e17725e68b5ab0eef0ff8ccc0c875 /lisp | |
| parent | 69b0acb95690de72a80beedf114f8f0896ef1354 (diff) | |
| download | emacs-e43273eff03ad9e6c7564057b35a5bf6810935f2.tar.gz emacs-e43273eff03ad9e6c7564057b35a5bf6810935f2.zip | |
Use ctl-x-map in place of C-x (bug#10566)
For an example of the problems NOT doing this might cause, see eg
http://lists.gnu.org/archive/html/bug-gnu-emacs/2006-07/msg00000.html
Eg after:
(global-set-key (kbd "C-u") ctl-x-map)
(global-set-key (kbd "C-x") 'universal-argument)
just loading dired-x.el or term.el would give an error.
* lisp/dired-x.el (dired-bind-jump): Use ctl-x-map and ctl-x-4-map.
* lisp/term.el (term-raw-escape-map): Use Control-X-prefix.
* lisp/vc/vc-hooks.el (vc-prefix-map): Use ctl-x-map.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/dired-x.el | 12 | ||||
| -rw-r--r-- | lisp/term.el | 3 | ||||
| -rw-r--r-- | lisp/vc/vc-hooks.el | 2 |
4 files changed, 14 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 192b4913aa8..02884f7774f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-01-26 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * dired-x.el (dired-bind-jump): Use ctl-x-map and ctl-x-4-map. | ||
| 4 | * term.el (term-raw-escape-map): Use Control-X-prefix. | ||
| 5 | * vc/vc-hooks.el (vc-prefix-map): Use ctl-x-map. (Bug#10566) | ||
| 6 | |||
| 1 | 2012-01-25 Martin Rudalics <rudalics@gmx.at> | 7 | 2012-01-25 Martin Rudalics <rudalics@gmx.at> |
| 2 | 8 | ||
| 3 | * window.el (window-state-get, window--state-get-1): Don't deal | 9 | * window.el (window-state-get, window--state-get-1): Don't deal |
diff --git a/lisp/dired-x.el b/lisp/dired-x.el index f775fd952c0..9b54954695b 100644 --- a/lisp/dired-x.el +++ b/lisp/dired-x.el | |||
| @@ -85,12 +85,12 @@ use \\[customize]." | |||
| 85 | :set (lambda (sym val) | 85 | :set (lambda (sym val) |
| 86 | (if (set sym val) | 86 | (if (set sym val) |
| 87 | (progn | 87 | (progn |
| 88 | (define-key global-map "\C-x\C-j" 'dired-jump) | 88 | (define-key ctl-x-map "\C-j" 'dired-jump) |
| 89 | (define-key global-map "\C-x4\C-j" 'dired-jump-other-window)) | 89 | (define-key ctl-x-4-map "\C-j" 'dired-jump-other-window)) |
| 90 | (if (eq 'dired-jump (lookup-key global-map "\C-x\C-j")) | 90 | (if (eq 'dired-jump (lookup-key ctl-x-map "\C-j")) |
| 91 | (define-key global-map "\C-x\C-j" nil)) | 91 | (define-key ctl-x-map "\C-j" nil)) |
| 92 | (if (eq 'dired-jump-other-window (lookup-key global-map "\C-x4\C-j")) | 92 | (if (eq 'dired-jump-other-window (lookup-key ctl-x-4-map "\C-j")) |
| 93 | (define-key global-map "\C-x4\C-j" nil)))) | 93 | (define-key ctl-x-4-map "\C-j" nil)))) |
| 94 | :group 'dired-keys) | 94 | :group 'dired-keys) |
| 95 | 95 | ||
| 96 | (defcustom dired-bind-man t | 96 | (defcustom dired-bind-man t |
diff --git a/lisp/term.el b/lisp/term.el index 4050781fa8c..f44f34226f2 100644 --- a/lisp/term.el +++ b/lisp/term.el | |||
| @@ -907,8 +907,7 @@ is buffer-local." | |||
| 907 | (define-key map [remap self-insert-command] 'term-send-raw) | 907 | (define-key map [remap self-insert-command] 'term-send-raw) |
| 908 | (define-key map "\e" esc-map) | 908 | (define-key map "\e" esc-map) |
| 909 | (setq term-raw-map map) | 909 | (setq term-raw-map map) |
| 910 | (setq term-raw-escape-map | 910 | (setq term-raw-escape-map (copy-keymap 'Control-X-prefix)) |
| 911 | (copy-keymap (lookup-key (current-global-map) "\C-x"))) | ||
| 912 | 911 | ||
| 913 | ;; Added nearly all the 'gray keys' -mm | 912 | ;; Added nearly all the 'gray keys' -mm |
| 914 | 913 | ||
diff --git a/lisp/vc/vc-hooks.el b/lisp/vc/vc-hooks.el index 5e60666f56a..b6f07ef1dc4 100644 --- a/lisp/vc/vc-hooks.el +++ b/lisp/vc/vc-hooks.el | |||
| @@ -941,7 +941,7 @@ current, and kill the buffer that visits the link." | |||
| 941 | (define-key map "~" 'vc-revision-other-window) | 941 | (define-key map "~" 'vc-revision-other-window) |
| 942 | map)) | 942 | map)) |
| 943 | (fset 'vc-prefix-map vc-prefix-map) | 943 | (fset 'vc-prefix-map vc-prefix-map) |
| 944 | (define-key global-map "\C-xv" 'vc-prefix-map) | 944 | (define-key ctl-x-map "v" 'vc-prefix-map) |
| 945 | 945 | ||
| 946 | (defvar vc-menu-map | 946 | (defvar vc-menu-map |
| 947 | (let ((map (make-sparse-keymap "Version Control"))) | 947 | (let ((map (make-sparse-keymap "Version Control"))) |