From 2614e5321639008dc75f740236769d1e9213aae2 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sun, 21 Aug 2022 14:04:52 +0200 Subject: Rename newly-added eol/bol functions to pos-eol/pos-bol * lisp/emacs-lisp/shortdoc.el (buffer): * doc/lispref/positions.texi (Text Lines): Adjust. * src/editfns.c (Fpos_bol): Rename from Fpos. (Fpos_eol): Rename from Feol. --- src/editfns.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/editfns.c') diff --git a/src/editfns.c b/src/editfns.c index 16262381999..febc9f8fdaa 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -729,7 +729,7 @@ bol (Lisp_Object n, ptrdiff_t *out_count) return charpos; } -DEFUN ("bol", Fbol, Sbol, 0, 1, 0, +DEFUN ("pos-bol", Fpos_bol, Spos_bol, 0, 1, 0, doc: /* Return the position of the first character on the current line. With optional argument N, scan forward N - 1 lines first. If the scan reaches the end of the buffer, return that position. @@ -784,7 +784,7 @@ eol (Lisp_Object n) NULL); } -DEFUN ("eol", Feol, Seol, 0, 1, 0, +DEFUN ("pos-eol", Fpos_eol, Spos_eol, 0, 1, 0, doc: /* Return the position of the last character on the current line. With argument N not nil or 1, move forward N - 1 lines first. If scan reaches end of buffer, return that position. @@ -4642,8 +4642,8 @@ with an optional argument LOCK non-nil. */); defsubr (&Sline_beginning_position); defsubr (&Sline_end_position); - defsubr (&Sbol); - defsubr (&Seol); + defsubr (&Spos_bol); + defsubr (&Spos_eol); defsubr (&Ssave_excursion); defsubr (&Ssave_current_buffer); -- cgit v1.2.3