aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorEli Zaretskii2010-05-29 18:19:13 +0300
committerEli Zaretskii2010-05-29 18:19:13 +0300
commitdb5dce9dd18461205d9320bb705648fe44df328b (patch)
tree2513c57935d0c244d00af98febe702e41b40ab23 /doc
parent06fa4a23522821fc3a4e93c7ca505bae4d4733de (diff)
downloademacs-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/ChangeLog5
-rw-r--r--doc/emacs/basic.texi18
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 @@
12010-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
12010-05-18 Eli Zaretskii <eliz@gnu.org> 62010-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
166Move forward one character (@code{forward-char}). 166Move forward one character (@code{forward-char}).
167@item @key{right} 167@item @key{right}
168Move one character to the right (@code{right-arrow-command}). This 168Move one character to the right (@code{right-char}). This
169moves one character forward in text that is read in the usual 169moves one character forward in text that is read in the usual
170left-to-right direction, but one character @emph{backward} if the text 170left-to-right direction, but one character @emph{backward} if the text
171is read right-to-left, as needed for right-to-left scripts such as 171is 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
174Move backward one character (@code{backward-char}). 174Move backward one character (@code{backward-char}).
175@item @key{left} 175@item @key{left}
176Move one character to the left (@code{left-arrow-command}). This 176Move one character to the left (@code{left-char}). This
177moves one character backward in left-to-right text and one character 177moves one character backward in left-to-right text and one character
178forward in right-to-left text. 178forward 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}
182Move forward one word (@code{forward-word}). 181Move forward one word (@code{forward-word}).
182@item C-@key{right}
183Move one word to the right (@code{right-word}). This moves one word
184forward in left-to-right text and one word backward in right-to-left
185text.
183@item M-b 186@item M-b
184@itemx M-@key{left} 187@itemx M-@key{left}
185@itemx C-@key{left}
186Move backward one word (@code{backward-word}). 188Move backward one word (@code{backward-word}).
189@item C-@key{left}
190Move one word to the left (@code{left-word}). This moves one word
191backward in left-to-right text and one word forward in right-to-left
192text.
187@item C-n 193@item C-n
188@itemx @key{down} 194@itemx @key{down}
189Move down one screen line (@code{next-line}). This command attempts 195Move down one screen line (@code{next-line}). This command attempts