aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-08-31 13:38:50 -0400
committerGlenn Morris2012-08-31 13:38:50 -0400
commit723088480da2c8320e0944bc23f9b72fccb54319 (patch)
tree8ef6b25079cf71b9a5ac80074f9319360dc8aed5
parent3aca1291d030ea97eab8b99d7a3e916a980b0bae (diff)
downloademacs-723088480da2c8320e0944bc23f9b72fccb54319.tar.gz
emacs-723088480da2c8320e0944bc23f9b72fccb54319.zip
Fix right and left key remapping issue (bug#12317)
* lisp/emulation/cua-rect.el (cua--init-rectangles): * lisp/textmodes/picture.el (picture-mode-map): * lisp/play/blackbox.el (blackbox-mode-map): Remap right-char and left-char like forward-char and backward-char.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/emulation/cua-rect.el2
-rw-r--r--lisp/play/blackbox.el4
-rw-r--r--lisp/textmodes/picture.el2
4 files changed, 14 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3af8b506ee7..d0f4bed4449 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12012-08-31 Glenn Morris <rgm@gnu.org>
2
3 * emulation/cua-rect.el (cua--init-rectangles):
4 * textmodes/picture.el (picture-mode-map):
5 * play/blackbox.el (blackbox-mode-map): Remap right-char and left-char
6 like forward-char and backward-char. (Bug#12317)
7
12012-08-30 Leo Liu <sdl.web@gmail.com> 82012-08-30 Leo Liu <sdl.web@gmail.com>
2 9
3 * progmodes/flymake.el (flymake-warning-re): New variable. 10 * progmodes/flymake.el (flymake-warning-re): New variable.
diff --git a/lisp/emulation/cua-rect.el b/lisp/emulation/cua-rect.el
index e3aade760dc..245e1f63cc1 100644
--- a/lisp/emulation/cua-rect.el
+++ b/lisp/emulation/cua-rect.el
@@ -1424,7 +1424,9 @@ With prefix arg, indent to that column."
1424 (define-key cua--rectangle-keymap [remap set-mark-command] 'cua-toggle-rectangle-mark) 1424 (define-key cua--rectangle-keymap [remap set-mark-command] 'cua-toggle-rectangle-mark)
1425 1425
1426 (define-key cua--rectangle-keymap [remap forward-char] 'cua-resize-rectangle-right) 1426 (define-key cua--rectangle-keymap [remap forward-char] 'cua-resize-rectangle-right)
1427 (define-key cua--rectangle-keymap [remap right-char] 'cua-resize-rectangle-right)
1427 (define-key cua--rectangle-keymap [remap backward-char] 'cua-resize-rectangle-left) 1428 (define-key cua--rectangle-keymap [remap backward-char] 'cua-resize-rectangle-left)
1429 (define-key cua--rectangle-keymap [remap left-char] 'cua-resize-rectangle-left)
1428 (define-key cua--rectangle-keymap [remap next-line] 'cua-resize-rectangle-down) 1430 (define-key cua--rectangle-keymap [remap next-line] 'cua-resize-rectangle-down)
1429 (define-key cua--rectangle-keymap [remap previous-line] 'cua-resize-rectangle-up) 1431 (define-key cua--rectangle-keymap [remap previous-line] 'cua-resize-rectangle-up)
1430 (define-key cua--rectangle-keymap [remap end-of-line] 'cua-resize-rectangle-eol) 1432 (define-key cua--rectangle-keymap [remap end-of-line] 'cua-resize-rectangle-eol)
diff --git a/lisp/play/blackbox.el b/lisp/play/blackbox.el
index eb2d784c8e5..4e8790c3586 100644
--- a/lisp/play/blackbox.el
+++ b/lisp/play/blackbox.el
@@ -93,11 +93,13 @@
93 (define-key map (vector 'remap oldfun) newfun)) 93 (define-key map (vector 'remap oldfun) newfun))
94 94
95 95
96(defvar blackbox-mode-map 96(defvar blackbox-mode-map
97 (let ((map (make-keymap))) 97 (let ((map (make-keymap)))
98 (suppress-keymap map t) 98 (suppress-keymap map t)
99 (blackbox-redefine-key map 'backward-char 'bb-left) 99 (blackbox-redefine-key map 'backward-char 'bb-left)
100 (blackbox-redefine-key map 'left-char 'bb-left)
100 (blackbox-redefine-key map 'forward-char 'bb-right) 101 (blackbox-redefine-key map 'forward-char 'bb-right)
102 (blackbox-redefine-key map 'right-char 'bb-right)
101 (blackbox-redefine-key map 'previous-line 'bb-up) 103 (blackbox-redefine-key map 'previous-line 'bb-up)
102 (blackbox-redefine-key map 'next-line 'bb-down) 104 (blackbox-redefine-key map 'next-line 'bb-down)
103 (blackbox-redefine-key map 'move-end-of-line 'bb-eol) 105 (blackbox-redefine-key map 'move-end-of-line 'bb-eol)
diff --git a/lisp/textmodes/picture.el b/lisp/textmodes/picture.el
index 9e8cbb216d1..5662e905714 100644
--- a/lisp/textmodes/picture.el
+++ b/lisp/textmodes/picture.el
@@ -620,7 +620,9 @@ Leaves the region surrounding the rectangle."
620 (picture-substitute 'completion-separator-self-insert-autofilling 620 (picture-substitute 'completion-separator-self-insert-autofilling
621 'picture-self-insert) 621 'picture-self-insert)
622 (picture-substitute 'forward-char 'picture-forward-column) 622 (picture-substitute 'forward-char 'picture-forward-column)
623 (picture-substitute 'right-char 'picture-forward-column)
623 (picture-substitute 'backward-char 'picture-backward-column) 624 (picture-substitute 'backward-char 'picture-backward-column)
625 (picture-substitute 'left-char 'picture-backward-column)
624 (picture-substitute 'delete-char 'picture-clear-column) 626 (picture-substitute 'delete-char 'picture-clear-column)
625 ;; There are two possibilities for what is normally on DEL. 627 ;; There are two possibilities for what is normally on DEL.
626 (picture-substitute 'backward-delete-char-untabify 'picture-backward-clear-column) 628 (picture-substitute 'backward-delete-char-untabify 'picture-backward-clear-column)