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

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

[nongnu] elpa/rust-mode 5cfb919 265/486: Merge pull request #165 from ni


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode 5cfb919 265/486: Merge pull request #165 from nikomatsakis/new-errors
Date: Sat, 7 Aug 2021 09:25:33 -0400 (EDT)

branch: elpa/rust-mode
commit 5cfb9197af67e00ebd5bbcb05c28545c9014ea32
Merge: f73f321 d2e57a9
Author: Niko Matsakis <niko@alum.mit.edu>
Commit: GitHub <noreply@github.com>

    Merge pull request #165 from nikomatsakis/new-errors
    
    fix regex to account for `[E123]`
---
 rust-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rust-mode.el b/rust-mode.el
index 99e4bb4..4867e77 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -1428,7 +1428,7 @@ See `compilation-error-regexp-alist' for help on their 
format.")
         (let ((start-of-error
                (save-excursion
                  (beginning-of-line)
-                 (while (not (looking-at "^[a-z]+:"))
+                 (while (not (looking-at "^[a-z]+:\\|^[a-z]+\\[E[0-9]+\\]:"))
                    (forward-line -1))
                  (point))))
           (set-window-start (selected-window) start-of-error))))))



reply via email to

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