emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/rust-mode 10be8b4408 1/2: Use line-beginning-position inst


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode 10be8b4408 1/2: Use line-beginning-position instead of obsolete point-at-bol
Date: Mon, 19 Sep 2022 06:59:36 -0400 (EDT)

branch: elpa/rust-mode
commit 10be8b44085260dee68c4321e49fc98d93f3116d
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    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 47cbf626f4..80106b836a 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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]