Skip to content

Commit

Permalink
Merge topic 'emacs-cmake-mode'
Browse files Browse the repository at this point in the history
8eb8e27 cmake-mode.el: Use line-beginning-position instead of obsolete point-at-bol

Acked-by: Kitware Robot <[email protected]>
Merge-request: !9714
  • Loading branch information
bradking authored and kwrobot committed Aug 14, 2024
2 parents b2b3c58 + 8eb8e27 commit cf1bc1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Auxiliary/cmake-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cf1bc1b

Please sign in to comment.