diff options
| author | Eli Zaretskii | 2010-08-08 19:43:26 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2010-08-08 19:43:26 +0300 |
| commit | cd21226da41a652bbf21557307bf7e4904fa1524 (patch) | |
| tree | fe8adf50249fb13db706c1373b5bce9b5c575404 /src | |
| parent | efb41e219b4d568cef324590594e8c6f49ad6e4f (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | src/cmds.c | 7 | ||||
| -rw-r--r-- | src/editfns.c | 6 |
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 @@ | |||
| 1 | 2010-08-08 Eli Zaretskii <eliz@gnu.org> | 1 | 2010-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 | ||
| 114 | DEFUN ("forward-line", Fforward_line, Sforward_line, 0, 1, "^p", | 114 | DEFUN ("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). |
| 116 | Precisely, if point is on line I, move to the start of line I + N. | 116 | Precisely, if point is on line I, move to the start of line I + N |
| 117 | \("start of line" in the logical order). | ||
| 117 | If there isn't room, go as far as possible (no error). | 118 | If there isn't room, go as far as possible (no error). |
| 118 | Returns the count of lines left to move. If moving forward, | 119 | Returns the count of lines left to move. If moving forward, |
| 119 | that is N - number of lines moved; if backward, N + number moved. | 120 | that 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 | ||
| 159 | DEFUN ("beginning-of-line", Fbeginning_of_line, Sbeginning_of_line, 0, 1, "^p", | 160 | DEFUN ("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). |
| 161 | With argument N not nil or 1, move forward N - 1 lines first. | 162 | With argument N not nil or 1, move forward N - 1 lines first. |
| 162 | If point reaches the beginning or end of buffer, it stops there. | 163 | If 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 | ||
| 183 | DEFUN ("end-of-line", Fend_of_line, Send_of_line, 0, 1, "^p", | 184 | DEFUN ("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). |
| 185 | With argument N not nil or 1, move forward N - 1 lines first. | 186 | With argument N not nil or 1, move forward N - 1 lines first. |
| 186 | If point reaches the beginning or end of buffer, it stops there. | 187 | If point reaches the beginning or end of buffer, it stops there. |
| 187 | To ignore intangibility, bind `inhibit-point-motion-hooks' to t. | 188 | To 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", | |||
| 805 | With argument N not nil or 1, move forward N - 1 lines first. | 805 | With argument N not nil or 1, move forward N - 1 lines first. |
| 806 | If scan reaches end of buffer, return that position. | 806 | If scan reaches end of buffer, return that position. |
| 807 | 807 | ||
| 808 | The returned position is of the first character in the logical order, | ||
| 809 | i.e. the one that has the smallest character position. | ||
| 810 | |||
| 808 | This function constrains the returned position to the current field | 811 | This function constrains the returned position to the current field |
| 809 | unless that would be on a different line than the original, | 812 | unless that would be on a different line than the original, |
| 810 | unconstrained result. If N is nil or 1, and a front-sticky field | 813 | unconstrained 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, | |||
| 843 | With argument N not nil or 1, move forward N - 1 lines first. | 846 | With argument N not nil or 1, move forward N - 1 lines first. |
| 844 | If scan reaches end of buffer, return that position. | 847 | If scan reaches end of buffer, return that position. |
| 845 | 848 | ||
| 849 | The returned position is of the last character in the logical order, | ||
| 850 | i.e. the character whose buffer position is the largest one. | ||
| 851 | |||
| 846 | This function constrains the returned position to the current field | 852 | This function constrains the returned position to the current field |
| 847 | unless that would be on a different line than the original, | 853 | unless that would be on a different line than the original, |
| 848 | unconstrained result. If N is nil or 1, and a rear-sticky field ends | 854 | unconstrained result. If N is nil or 1, and a rear-sticky field ends |