aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2010-08-08 19:43:26 +0300
committerEli Zaretskii2010-08-08 19:43:26 +0300
commitcd21226da41a652bbf21557307bf7e4904fa1524 (patch)
treefe8adf50249fb13db706c1373b5bce9b5c575404 /src
parentefb41e219b4d568cef324590594e8c6f49ad6e4f (diff)
downloademacs-cd21226da41a652bbf21557307bf7e4904fa1524.tar.gz
emacs-cd21226da41a652bbf21557307bf7e4904fa1524.zip
Make some doc strings bidi-friendly.
cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line): editfns.c (Fline_beginning_position, Fline_end_position): State in the doc strings that start and end of line are in the logical order.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/cmds.c7
-rw-r--r--src/editfns.c6
3 files changed, 15 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index c3dfd6859c0..551ab9d215a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,10 @@
12010-08-08 Eli Zaretskii <eliz@gnu.org> 12010-08-08 Eli Zaretskii <eliz@gnu.org>
2 2
3 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
4 * editfns.c (Fline_beginning_position, Fline_end_position): State
5 in the doc strings that start and end of line are in the logical
6 order.
7
3 * xdisp.c (display_line): Move the handling of overlay arrow after 8 * xdisp.c (display_line): Move the handling of overlay arrow after
4 the call to find_row_edges. (Bug#6699) 9 the call to find_row_edges. (Bug#6699)
5 10
diff --git a/src/cmds.c b/src/cmds.c
index 7d54f46aeb4..4cb6ca199e7 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -113,7 +113,8 @@ right or to the left on the screen. This is in contrast with
113 113
114DEFUN ("forward-line", Fforward_line, Sforward_line, 0, 1, "^p", 114DEFUN ("forward-line", Fforward_line, Sforward_line, 0, 1, "^p",
115 doc: /* Move N lines forward (backward if N is negative). 115 doc: /* Move N lines forward (backward if N is negative).
116Precisely, if point is on line I, move to the start of line I + N. 116Precisely, if point is on line I, move to the start of line I + N
117\("start of line" in the logical order).
117If there isn't room, go as far as possible (no error). 118If there isn't room, go as far as possible (no error).
118Returns the count of lines left to move. If moving forward, 119Returns the count of lines left to move. If moving forward,
119that is N - number of lines moved; if backward, N + number moved. 120that is N - number of lines moved; if backward, N + number moved.
@@ -157,7 +158,7 @@ successfully moved (for the return value). */)
157} 158}
158 159
159DEFUN ("beginning-of-line", Fbeginning_of_line, Sbeginning_of_line, 0, 1, "^p", 160DEFUN ("beginning-of-line", Fbeginning_of_line, Sbeginning_of_line, 0, 1, "^p",
160 doc: /* Move point to beginning of current line. 161 doc: /* Move point to beginning of current line (in the logical order).
161With argument N not nil or 1, move forward N - 1 lines first. 162With argument N not nil or 1, move forward N - 1 lines first.
162If point reaches the beginning or end of buffer, it stops there. 163If point reaches the beginning or end of buffer, it stops there.
163 164
@@ -181,7 +182,7 @@ instead. For instance, `(forward-line 0)' does the same thing as
181} 182}
182 183
183DEFUN ("end-of-line", Fend_of_line, Send_of_line, 0, 1, "^p", 184DEFUN ("end-of-line", Fend_of_line, Send_of_line, 0, 1, "^p",
184 doc: /* Move point to end of current line. 185 doc: /* Move point to end of current line (in the logical order).
185With argument N not nil or 1, move forward N - 1 lines first. 186With argument N not nil or 1, move forward N - 1 lines first.
186If point reaches the beginning or end of buffer, it stops there. 187If point reaches the beginning or end of buffer, it stops there.
187To ignore intangibility, bind `inhibit-point-motion-hooks' to t. 188To ignore intangibility, bind `inhibit-point-motion-hooks' to t.
diff --git a/src/editfns.c b/src/editfns.c
index c3ffd203124..0e034cc76fd 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -805,6 +805,9 @@ DEFUN ("line-beginning-position",
805With argument N not nil or 1, move forward N - 1 lines first. 805With argument N not nil or 1, move forward N - 1 lines first.
806If scan reaches end of buffer, return that position. 806If scan reaches end of buffer, return that position.
807 807
808The returned position is of the first character in the logical order,
809i.e. the one that has the smallest character position.
810
808This function constrains the returned position to the current field 811This function constrains the returned position to the current field
809unless that would be on a different line than the original, 812unless that would be on a different line than the original,
810unconstrained result. If N is nil or 1, and a front-sticky field 813unconstrained result. If N is nil or 1, and a front-sticky field
@@ -843,6 +846,9 @@ DEFUN ("line-end-position", Fline_end_position, Sline_end_position, 0, 1, 0,
843With argument N not nil or 1, move forward N - 1 lines first. 846With argument N not nil or 1, move forward N - 1 lines first.
844If scan reaches end of buffer, return that position. 847If scan reaches end of buffer, return that position.
845 848
849The returned position is of the last character in the logical order,
850i.e. the character whose buffer position is the largest one.
851
846This function constrains the returned position to the current field 852This function constrains the returned position to the current field
847unless that would be on a different line than the original, 853unless that would be on a different line than the original,
848unconstrained result. If N is nil or 1, and a rear-sticky field ends 854unconstrained result. If N is nil or 1, and a rear-sticky field ends