From 8eb8e27fb2b17df25a7ecebb4c0e4b7397e458cc Mon Sep 17 00:00:00 2001 From: Pierre Rouleau Date: Thu, 8 Aug 2024 15:00:11 -0400 Subject: [PATCH] cmake-mode.el: Use line-beginning-position instead of obsolete point-at-bol MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit That fixes Emacs 29 warning: cmake-mode.el:186:48: Warning: ‘point-at-bol’ is an obsolete function (as of 29.1); use ‘line-beginning-position’ or ‘pos-bol’ instead. --- Auxiliary/cmake-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Auxiliary/cmake-mode.el b/Auxiliary/cmake-mode.el index 893c0d4d09..35af733a93 100644 --- a/Auxiliary/cmake-mode.el +++ b/Auxiliary/cmake-mode.el @@ -183,7 +183,7 @@ set the path with these commands: ) (defun cmake-point-in-indendation () - (string-match "^[ \\t]*$" (buffer-substring (point-at-bol) (point)))) + (string-match "^[ \\t]*$" (buffer-substring (line-beginning-position) (point)))) (defun cmake-indent-line-to (column) "Indent the current line to COLUMN.