[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/rust-mode 2e671d9 040/486: revisions to emacs compilation
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/rust-mode 2e671d9 040/486: revisions to emacs compilation regexp, more readable and robust. |
Date: |
Sat, 7 Aug 2021 09:24:44 -0400 (EDT) |
branch: elpa/rust-mode
commit 2e671d96c816312bd1ffc4221d225a51c2be35cd
Author: Felix S. Klock II <pnkfelix@pnkfx.org>
Commit: Felix S. Klock II <pnkfelix@pnkfx.org>
revisions to emacs compilation regexp, more readable and robust.
---
rust-mode.el | 22 +++++++++++++++-------
1 file changed, 15 insertions(+), 7 deletions(-)
diff --git a/rust-mode.el b/rust-mode.el
index efe9f51..af1c28b 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -229,15 +229,23 @@ The initializer is `DEFAULT-TAB-WIDTH'.")
;; regexp (which is broken on a few edge cases), add our own 'rust
;; compilation error regexp and use it instead.
(defvar rustc-compilation-regexps
- (let ((re (concat "^\\([^ \n]+\\):\\([0-9]+\\):\\([0-9]+\\): "
- "\\([0-9]+\\):\\([0-9]+\\) "
- "\\(?:[Ee]rror\\|\\([Ww]arning\\)\\):")))
- (cons re '(1 (2 . 4) (3 . 5) (6))))
+ (let ((file "\\([^ \n]+\\)")
+ (start-line "\\([0-9]+\\)")
+ (start-col "\\([0-9]+\\)")
+ (end-line "\\([0-9]+\\)")
+ (end-col "\\([0-9]+\\)")
+ (error-or-warning "\\(?:[Ee]rror\\|\\([Ww]arning\\)\\)"))
+ (let ((re (concat "^" file ":" start-line ":" start-col
+ ": " end-line ":" end-col
+ " \\(?:[Ee]rror\\|\\([Ww]arning\\)\\):")))
+ (cons re '(1 (2 . 4) (3 . 5) (6)))))
"Specifications for matching errors in rustc invocations.
See `compilation-error-regexp-alist for help on their format.")
-(add-to-list 'compilation-error-regexp-alist-alist
- (cons 'rustc rustc-compilation-regexps))
-(add-to-list 'compilation-error-regexp-alist 'rustc)
+(eval-after-load 'compile
+ '(progn
+ (add-to-list 'compilation-error-regexp-alist-alist
+ (cons 'rustc rustc-compilation-regexps))
+ (add-to-list 'compilation-error-regexp-alist 'rustc)))
;;; rust-mode.el ends here
- [nongnu] elpa/rust-mode 315cc59 233/486: Re-indent on }, (continued)
- [nongnu] elpa/rust-mode 315cc59 233/486: Re-indent on }, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode bc77e16 240/486: remove emacs 23 support, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 620d718 257/486: Fix #160, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode cffb950f2 258/486: [master] Remove redundant progn., ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode b3b0f78 259/486: Merge pull request #161 from Fanael/master, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode ba5ff90 260/486: Merge pull request #159 from hotpxl/master, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode f73f321 264/486: Merge pull request #163 from Wilfred/preserve_point_rustfmt, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode cc59c83 270/486: Recognize imenu items starting with "unsafe", ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode fba7714 271/486: Handle comments when indenting method chains, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 7b32066 032/486: rust-mode.el uses the 'cl macros, so it should actually require them, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 2e671d9 040/486: revisions to emacs compilation regexp, more readable and robust.,
ELPA Syncer <=
- [nongnu] elpa/rust-mode 1962971 044/486: Correct indent with trailing spaces/comments on previous line, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode f0e4edc 001/486: Move emacs mode into tree, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 6aa0a91 002/486: rust-mode: tag -> enum. Closes #1577, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 3dbae26 008/486: Remove "iface" from vim and emacs modes., ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode d0d3911 007/486: For #2229, recognize 'again' in place of 'cont', final change pending snapshot., ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 50e55e4 012/486: Add 'static' to rust-mode.el., ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 256de23 011/486: emacs: add match as keyword, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 3a65c56 018/486: update readme, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 8d6ea12 019/486: Add author to meta-data, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 4b56ffe 020/486: update readme with package.el installation steps, ELPA Syncer, 2021/08/07