From 35178a080fb3b61051437570f51fa0cdf2b7772b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leandro=20L=C3=B3pez=20=28inkel=29?= Date: Thu, 15 Feb 2024 16:33:29 -0300 Subject: [PATCH] Remove obsolete function calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In Emacs 29.1 the `point-at-bol` and `point-at-eol` functions are obsolete. This removes the following warnings when compiling the file: In dockerfile-indent-line-function: dockerfile-mode.el:159:41: Warning: ‘point-at-bol’ is an obsolete function (as of 29.1); use ‘line-beginning-position’ or ‘pos-bol’ instead. dockerfile-mode.el:163:37: Warning: ‘point-at-eol’ is an obsolete function (as of 29.1); use ‘line-end-position’ or ‘pos-eol’ instead. dockerfile-mode.el:164:32: Warning: ‘point-at-eol’ is an obsolete function (as of 29.1); use ‘line-end-position’ or ‘pos-eol’ instead. dockerfile-mode.el:166:27: Warning: ‘point-at-bol’ is an obsolete function (as of 29.1); use ‘line-beginning-position’ or ‘pos-bol’ instead. It is safe to use these new functions as they were introduced as of Emacs 20. --- dockerfile-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dockerfile-mode.el b/dockerfile-mode.el index b565785..5fe585a 100644 --- a/dockerfile-mode.el +++ b/dockerfile-mode.el @@ -156,7 +156,7 @@ Lines beginning with a keyword are ignored, and any others are indented by one `dockerfile-indent-offset'. Functionality toggled by `dockerfile-enable-auto-indent'." (when dockerfile-enable-auto-indent - (unless (member (get-text-property (point-at-bol) 'face) + (unless (member (get-text-property (line-beginning-position) 'face) '(font-lock-comment-delimiter-face font-lock-keyword-face)) (save-excursion (beginning-of-line)