]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve point-at-{bol,eol} obsoletion message
authorStefan Kangas <stefankangas@gmail.com>
Mon, 29 Aug 2022 17:26:39 +0000 (19:26 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Mon, 29 Aug 2022 17:26:39 +0000 (19:26 +0200)
* lisp/subr.el (point-at-eol, point-at-bol): Mention 'pos-eol' and
'pos-bol' in obsoletion message.

lisp/subr.el

index 36f5e2fee49d6d6c949e2f29e7f14866a8d04d4f..2ffc594997c069d83200c91331707a69c7e4c3f2 100644 (file)
@@ -1913,8 +1913,10 @@ be a list of the form returned by `event-start' and `event-end'."
 (defalias 'mkdir #'make-directory)
 
 ;; These were the XEmacs names, now obsolete:
-(define-obsolete-function-alias 'point-at-eol #'line-end-position "29.1")
-(define-obsolete-function-alias 'point-at-bol #'line-beginning-position "29.1")
+(defalias 'point-at-eol #'line-end-position)
+(make-obsolete 'point-at-eol "use `line-end-position' or `pos-eol' instead." "29.1")
+(defalias 'point-at-bol #'line-beginning-position)
+(make-obsolete 'point-at-bol "use `line-beginning-position' or `pos-bol' instead." "29.1")
 (define-obsolete-function-alias 'user-original-login-name #'user-login-name "28.1")
 
 ;; These are in obsolete/autoload.el, but are commonly used by