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

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

[nongnu] elpa/rust-mode ffaefd7253 1/2: Avoid obsolete calling conventi


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode ffaefd7253 1/2: Avoid obsolete calling convention of ‘looking-back’.
Date: Tue, 28 Dec 2021 11:58:18 -0500 (EST)

branch: elpa/rust-mode
commit ffaefd72539af7d17690b947d38e58a103e2bd51
Author: Philipp Stephani <phst@google.com>
Commit: Philipp Stephani <phst@google.com>

    Avoid obsolete calling convention of ‘looking-back’.
    
    Calling ‘looking-back’ with only one argument causes a compile warning.
---
 rust-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/rust-mode.el b/rust-mode.el
index 773251d8f6..ebc2bbc344 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -227,7 +227,8 @@ See `prettify-symbols-compose-predicate'."
        (pcase match
          ("||" (not (save-excursion
                       (goto-char start)
-                      (looking-back "\\(?:\\<move\\|[[({:=,;]\\) *"))))
+                      (looking-back "\\(?:\\<move\\|[[({:=,;]\\) *"
+                                    (line-beginning-position)))))
          ("&&" (char-equal (char-after end) ?\s))
          (_ t))))
 



reply via email to

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