summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-12-10 23:25:45 +0000
committerRichard M. Stallman <rms@gnu.org>1996-12-10 23:25:45 +0000
commit4d3e31db399baa3803511383814035cb8a033a2c (patch)
treed623210c3b747d5799ea1ac8948acd977232381e
parent86b41f179243bf03c32943fc7558839c65721244 (diff)
downloademacs-4d3e31db399baa3803511383814035cb8a033a2c.tar.gz
(Fend_of_line, Fbeginning_of_line):
Use Fline_beginning_position, Fline_end_position.
-rw-r--r--src/cmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmds.c b/src/cmds.c
index 1d835d8554f..8ca407a2abd 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -139,7 +139,7 @@ If scan reaches end of buffer, stop there without error.")
else
CHECK_NUMBER (n, 0);
- Fforward_line (make_number (XINT (n) - 1));
+ SET_PT (XINT (Fline_beginning_position (n)));
return Qnil;
}
@@ -159,7 +159,7 @@ If scan reaches end of buffer, stop there without error.")
else
CHECK_NUMBER (n, 0);
- SET_PT (find_before_next_newline (PT, 0, XINT (n) - (XINT (n) <= 0)));
+ SET_PT (XINT (Fline_end_position (n)));
return Qnil;
}