emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master f117b5df4d: Add new functions eol and bol


From: Stefan Kangas
Subject: Re: master f117b5df4d: Add new functions eol and bol
Date: Fri, 19 Aug 2022 09:00:29 -0700

Lars Ingebrigtsen <larsi@gnus.org> writes:

>> How about `point-bol' (while making `point-at-bol' obsolete to avoid
>> confusion)?
>
> That's a possibility.  But then somebody would have to take on the
> dreary job of going through the >600 places where point-at-bol/eol is
> used in the Emacs tree and decide whether to use `point-bol' or
> `line-beginning-position'.

We could make the task less daunting by starting with something like:

diff --git a/lisp/subr.el b/lisp/subr.el
index cd6a9be099..4237031ff3 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -1912,8 +1912,10 @@ 'store-match-data
 (defalias 'chmod #'set-file-modes)
 (defalias 'mkdir #'make-directory)
 ;; These are the XEmacs names:
-(defalias 'point-at-eol #'line-end-position)
-(defalias 'point-at-bol #'line-beginning-position)
+(defalias 'point-at-eol #'line-end-position
+  "Obsolete; use `point-eol' or `line-end-position' instead.")
+(defalias 'point-at-bol #'line-beginning-position
+  "Obsolete; use `point-bol' or `line-beginning-position' instead.")

 (define-obsolete-function-alias 'user-original-login-name
   #'user-login-name "28.1")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]