From 10be8b44085260dee68c4321e49fc98d93f3116d Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Mon, 19 Sep 2022 12:29:08 +0200 Subject: Use line-beginning-position instead of obsolete point-at-bol Obsolete since Emacs 29 / b7e867b841f47dcff3aeaef9b5608a237386ce70. --- rust-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-mode.el b/rust-mode.el index 47cbf62..80106b8 100644 --- a/rust-mode.el +++ b/rust-mode.el @@ -734,7 +734,7 @@ buffer." (while (and (or (rust-in-str-or-cmnt) ;; Only whitespace (or nothing) from the beginning to ;; the end of the line. - (looking-back "^\s*" (point-at-bol))) + (looking-back "^\s*" (line-beginning-position))) (= (rust-paren-level) level)) (forward-line -1) (end-of-line))) -- cgit v1.2.3