]> git.eshelyaron.com Git - emacs.git/commitdiff
Rename newly-added eol/bol functions to pos-eol/pos-bol
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 21 Aug 2022 12:04:52 +0000 (14:04 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 21 Aug 2022 12:04:52 +0000 (14:04 +0200)
* 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.

doc/lispref/positions.texi
etc/NEWS
lisp/emacs-lisp/shortdoc.el
src/editfns.c

index 53846ed29719d8da2d792976c950d8c6029a9285..7945232bf8f01f8916349632661ae2095e8dfde0 100644 (file)
@@ -387,12 +387,12 @@ Return the position that @code{(end-of-line @var{count})}
 would move to.
 @end defun
 
-@defun bol &optional count
+@defun pos-bol &optional count
 Like @code{line-beginning-position}, but ignores fields (and is more
 efficient).
 @end defun
 
-@defun eol &optional count
+@defun pos-eol &optional count
 Like @code{line-end-position}, but ignores fields (and is more
 efficient).
 @end defun
index 0274e3b15350ca7f93b5d7bb5cda55f079e69b12..c41b7ac6e822886ce35893d63be358a314de40e4 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2589,7 +2589,7 @@ patcomp.el, pc-mode.el, pc-select.el, s-region.el, and sregex.el.
 * Lisp Changes in Emacs 29.1
 
 +++
-** New functions 'eol' and 'bol'.
+** New functions 'pos-eol' and 'pos-bol'.
 These are like 'line-end-position' and 'line-beginning-position'
 (respectively), but ignore fields (and are more efficient).
 
index acf294ede140d510daf4bebfb5163c4e1bf8b58e..6fb6100bd2d565854c2d58951e75a59c813145ef 100644 (file)
@@ -941,10 +941,10 @@ A FUNC form can have any number of `:no-eval' (or `:no-value'),
    :eval (point-min))
   (point-max
    :eval (point-max))
-  (eol
-   :eval (eol))
-  (bol
-   :eval (bol))
+  (pos-eol
+   :eval (pos-eol))
+  (pos-bol
+   :eval (pos-bol))
   (bolp
    :eval (bolp))
   (eolp
index 16262381999095ad99e5391636e8fdf6b9cfb9a3..febc9f8fdaa9a96fd80b7ade744eb06a653c3353 100644 (file)
@@ -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);