diff options
| author | Eli Zaretskii | 2010-05-29 18:19:13 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2010-05-29 18:19:13 +0300 |
| commit | db5dce9dd18461205d9320bb705648fe44df328b (patch) | |
| tree | 2513c57935d0c244d00af98febe702e41b40ab23 /doc | |
| parent | 06fa4a23522821fc3a4e93c7ca505bae4d4733de (diff) | |
| download | emacs-db5dce9dd18461205d9320bb705648fe44df328b.tar.gz emacs-db5dce9dd18461205d9320bb705648fe44df328b.zip | |
Implement bidi-sensitive word movement with arrow keys.
lisp/subr.el (right-arrow-command, left-arrow-command): Move to bindings.el.
lisp/bindings.el (right-char, left-char): Move from subr.el and
rename from right-arrow-command and left-arrow-command.
(right-word, left-word): New functions.
(global-map) <right>: Bind to right-char.
(global-map) <left>: Bind to left-char.
(global-map) <C-right>: Bind to right-word.
(global-map) <C-left>: Bind to left-word.
doc/emacs/basic.texi (Moving Point): Update due to renaming of commands bound
to arrows. Document bidi-aware behavior of C-<right> and C-<left>.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/emacs/basic.texi | 18 |
2 files changed, 17 insertions, 6 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 82d4d028040..e43b4466d1f 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-05-29 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * basic.texi (Moving Point): Update due to renaming of commands bound | ||
| 4 | to arrows. Document bidi-aware behavior of C-<right> and C-<left>. | ||
| 5 | |||
| 1 | 2010-05-18 Eli Zaretskii <eliz@gnu.org> | 6 | 2010-05-18 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * display.texi (Fringes): Document reversal of fringe arrows for R2L | 8 | * display.texi (Fringes): Document reversal of fringe arrows for R2L |
diff --git a/doc/emacs/basic.texi b/doc/emacs/basic.texi index 654c017c59e..27ca4593339 100644 --- a/doc/emacs/basic.texi +++ b/doc/emacs/basic.texi | |||
| @@ -146,8 +146,8 @@ keyboard commands that move point in more sophisticated ways. | |||
| 146 | @findex move-end-of-line | 146 | @findex move-end-of-line |
| 147 | @findex forward-char | 147 | @findex forward-char |
| 148 | @findex backward-char | 148 | @findex backward-char |
| 149 | @findex right-arrow-command | 149 | @findex right-char |
| 150 | @findex left-arrow-command | 150 | @findex left-char |
| 151 | @findex next-line | 151 | @findex next-line |
| 152 | @findex previous-line | 152 | @findex previous-line |
| 153 | @findex beginning-of-buffer | 153 | @findex beginning-of-buffer |
| @@ -165,7 +165,7 @@ Move to the end of the line (@code{move-end-of-line}). | |||
| 165 | @item C-f | 165 | @item C-f |
| 166 | Move forward one character (@code{forward-char}). | 166 | Move forward one character (@code{forward-char}). |
| 167 | @item @key{right} | 167 | @item @key{right} |
| 168 | Move one character to the right (@code{right-arrow-command}). This | 168 | Move one character to the right (@code{right-char}). This |
| 169 | moves one character forward in text that is read in the usual | 169 | moves one character forward in text that is read in the usual |
| 170 | left-to-right direction, but one character @emph{backward} if the text | 170 | left-to-right direction, but one character @emph{backward} if the text |
| 171 | is read right-to-left, as needed for right-to-left scripts such as | 171 | is read right-to-left, as needed for right-to-left scripts such as |
| @@ -173,17 +173,23 @@ Arabic. @xref{Bidirectional Editing}. | |||
| 173 | @item C-b | 173 | @item C-b |
| 174 | Move backward one character (@code{backward-char}). | 174 | Move backward one character (@code{backward-char}). |
| 175 | @item @key{left} | 175 | @item @key{left} |
| 176 | Move one character to the left (@code{left-arrow-command}). This | 176 | Move one character to the left (@code{left-char}). This |
| 177 | moves one character backward in left-to-right text and one character | 177 | moves one character backward in left-to-right text and one character |
| 178 | forward in right-to-left text. | 178 | forward in right-to-left text. |
| 179 | @item M-f | 179 | @item M-f |
| 180 | @itemx M-@key{right} | 180 | @itemx M-@key{right} |
| 181 | @itemx C-@key{right} | ||
| 182 | Move forward one word (@code{forward-word}). | 181 | Move forward one word (@code{forward-word}). |
| 182 | @item C-@key{right} | ||
| 183 | Move one word to the right (@code{right-word}). This moves one word | ||
| 184 | forward in left-to-right text and one word backward in right-to-left | ||
| 185 | text. | ||
| 183 | @item M-b | 186 | @item M-b |
| 184 | @itemx M-@key{left} | 187 | @itemx M-@key{left} |
| 185 | @itemx C-@key{left} | ||
| 186 | Move backward one word (@code{backward-word}). | 188 | Move backward one word (@code{backward-word}). |
| 189 | @item C-@key{left} | ||
| 190 | Move one word to the left (@code{left-word}). This moves one word | ||
| 191 | backward in left-to-right text and one word forward in right-to-left | ||
| 192 | text. | ||
| 187 | @item C-n | 193 | @item C-n |
| 188 | @itemx @key{down} | 194 | @itemx @key{down} |
| 189 | Move down one screen line (@code{next-line}). This command attempts | 195 | Move down one screen line (@code{next-line}). This command attempts |