summaryrefslogtreecommitdiff
path: root/doc/lispref
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-08-19 15:22:29 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-08-19 15:22:36 +0200
commitf117b5df4dc69a38a5568c5926c1e417a35314eb (patch)
treed9967738c968ab723fc267de91052a14bb9501fc /doc/lispref
parent503112d1f01d5239b53c86fea4e12d851c185572 (diff)
downloademacs-f117b5df4dc69a38a5568c5926c1e417a35314eb.tar.gz
emacs-f117b5df4dc69a38a5568c5926c1e417a35314eb.tar.bz2
emacs-f117b5df4dc69a38a5568c5926c1e417a35314eb.zip
Add new functions eol and bol
* doc/lispref/positions.texi (Text Lines): Document them * lisp/emacs-lisp/shortdoc.el: Mention them, and also the buffer/line predicates. * src/editfns.c (bol): New function. (Fbol): New defun. (Fline_beginning_position): Use `bol'. (eol): New function. (Feol): New defun. (Fline_end_position): Use `eol'.
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/positions.texi10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/lispref/positions.texi b/doc/lispref/positions.texi
index 333c8e19a0e..53846ed2971 100644
--- a/doc/lispref/positions.texi
+++ b/doc/lispref/positions.texi
@@ -387,6 +387,16 @@ Return the position that @code{(end-of-line @var{count})}
would move to.
@end defun
+@defun bol &optional count
+Like @code{line-beginning-position}, but ignores fields (and is more
+efficient).
+@end defun
+
+@defun eol &optional count
+Like @code{line-end-position}, but ignores fields (and is more
+efficient).
+@end defun
+
@deffn Command forward-line &optional count
@cindex beginning of line
This function moves point forward @var{count} lines, to the beginning of