aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-12-10 23:25:45 +0000
committerRichard M. Stallman1996-12-10 23:25:45 +0000
commit38b294ca299f5af0abe1a90c3910b08e8971f9cb (patch)
tree31a2e724d5626fcb049374ed4b993eee1f4b7ab8 /src
parentbfc524bcad6f0523e61254a91e76bcedf3a65d11 (diff)
downloademacs-38b294ca299f5af0abe1a90c3910b08e8971f9cb.tar.gz
emacs-38b294ca299f5af0abe1a90c3910b08e8971f9cb.zip
(Fend_of_line, Fbeginning_of_line):
Use Fline_beginning_position, Fline_end_position.
Diffstat (limited to 'src')
-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.")
139 else 139 else
140 CHECK_NUMBER (n, 0); 140 CHECK_NUMBER (n, 0);
141 141
142 Fforward_line (make_number (XINT (n) - 1)); 142 SET_PT (XINT (Fline_beginning_position (n)));
143 return Qnil; 143 return Qnil;
144} 144}
145 145
@@ -159,7 +159,7 @@ If scan reaches end of buffer, stop there without error.")
159 else 159 else
160 CHECK_NUMBER (n, 0); 160 CHECK_NUMBER (n, 0);
161 161
162 SET_PT (find_before_next_newline (PT, 0, XINT (n) - (XINT (n) <= 0))); 162 SET_PT (XINT (Fline_end_position (n)));
163 163
164 return Qnil; 164 return Qnil;
165} 165}