summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Rouleau <prouleau001@gmail.com>2024-08-08 19:00:11 (GMT)
committerBrad King <brad.king@kitware.com>2024-08-13 19:50:51 (GMT)
commit8eb8e27fb2b17df25a7ecebb4c0e4b7397e458cc (patch)
tree10f15794d0bb5e806e7de0fc5c4f0b3325c820e9
parentc0cd10cd98199bc79cbcec87057a87b883f1e739 (diff)
downloadCMake-8eb8e27fb2b17df25a7ecebb4c0e4b7397e458cc.zip
CMake-8eb8e27fb2b17df25a7ecebb4c0e4b7397e458cc.tar.gz
CMake-8eb8e27fb2b17df25a7ecebb4c0e4b7397e458cc.tar.bz2
cmake-mode.el: Use line-beginning-position instead of obsolete point-at-bol
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.
-rw-r--r--Auxiliary/cmake-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/Auxiliary/cmake-mode.el b/Auxiliary/cmake-mode.el
index 893c0d4..35af733 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.