aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-11-10 15:48:13 +0000
committerRichard M. Stallman1995-11-10 15:48:13 +0000
commit55f7a32bb85ab1bccb40f5d646ecacf8582710ca (patch)
tree8bb796f7ea25913f26395aa96f72927861b15706 /src
parente595fa354d6044936a92b9a8141a1d4956a30021 (diff)
downloademacs-55f7a32bb85ab1bccb40f5d646ecacf8582710ca.tar.gz
emacs-55f7a32bb85ab1bccb40f5d646ecacf8582710ca.zip
(Fmove_to_column): Doc fix.
(compute_motion): Update next_boundary when we skip to next newline.
Diffstat (limited to 'src')
-rw-r--r--src/indent.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c
index ca154c91a2f..3188c00fdb7 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -474,7 +474,9 @@ If specified column is within a character, point goes after that character.\n\
474If it's past end of line, point goes to end of line.\n\n\ 474If it's past end of line, point goes to end of line.\n\n\
475A non-nil second (optional) argument FORCE means, if the line\n\ 475A non-nil second (optional) argument FORCE means, if the line\n\
476is too short to reach column COLUMN then add spaces/tabs to get there,\n\ 476is too short to reach column COLUMN then add spaces/tabs to get there,\n\
477and if COLUMN is in the middle of a tab character, change it to spaces.") 477and if COLUMN is in the middle of a tab character, change it to spaces.\n\
478\n\
479The return value is the current column.")
478 (column, force) 480 (column, force)
479 Lisp_Object column, force; 481 Lisp_Object column, force;
480{ 482{
@@ -764,6 +766,11 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width,
764 /* Truncating: skip to newline. */ 766 /* Truncating: skip to newline. */
765 pos = find_before_next_newline (pos, to, 1); 767 pos = find_before_next_newline (pos, to, 1);
766 hpos = width; 768 hpos = width;
769 /* If we just skipped next_boundary,
770 loop around in the main while
771 and handle it. */
772 if (pos >= next_boundary)
773 next_boundary = pos + 1;
767 } 774 }
768 else 775 else
769 { 776 {
@@ -914,6 +921,11 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width,
914 everything from a ^M to the end of the line is invisible. 921 everything from a ^M to the end of the line is invisible.
915 Stop *before* the real newline. */ 922 Stop *before* the real newline. */
916 pos = find_before_next_newline (pos, to, 1); 923 pos = find_before_next_newline (pos, to, 1);
924 /* If we just skipped next_boundary,
925 loop around in the main while
926 and handle it. */
927 if (pos > next_boundary)
928 next_boundary = pos;
917 /* Allow for the " ..." that is displayed for them. */ 929 /* Allow for the " ..." that is displayed for them. */
918 if (selective_rlen) 930 if (selective_rlen)
919 { 931 {