diff options
| author | Simeon Simeonov | 2024-03-14 22:27:34 +0100 |
|---|---|---|
| committer | Simeon Simeonov | 2024-03-14 22:27:34 +0100 |
| commit | 236114bdeab5edab09969e5ad398c32c2738dead (patch) | |
| tree | 42b337b433de9ada45f2aa441833c5cde42c3a1e /.emacs.d/lisp/rust-compile.el | |
| parent | 9fffbc025f80ef22a77ccc62f53baa990568b214 (diff) | |
Upgrade markdown-mode, rust and yasnippet
Diffstat (limited to '.emacs.d/lisp/rust-compile.el')
| -rw-r--r-- | .emacs.d/lisp/rust-compile.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.emacs.d/lisp/rust-compile.el b/.emacs.d/lisp/rust-compile.el index 1bb3103..04ac6b6 100644 --- a/.emacs.d/lisp/rust-compile.el +++ b/.emacs.d/lisp/rust-compile.el | |||
| @@ -34,6 +34,12 @@ See `compilation-error-regexp-alist' for help on their format.") | |||
| 34 | "Specifications for matching code references in rustc invocations. | 34 | "Specifications for matching code references in rustc invocations. |
| 35 | See `compilation-error-regexp-alist' for help on their format.") | 35 | See `compilation-error-regexp-alist' for help on their format.") |
| 36 | 36 | ||
| 37 | (defvar rustc-panics-compilation-regexps | ||
| 38 | (let ((re (concat "thread '[^']+' panicked at " rustc-compilation-location))) | ||
| 39 | (cons re '(2 3 4 nil 1))) | ||
| 40 | "Specifications for matching panics in rustc invocations. | ||
| 41 | See `compilation-error-regexp-alist' for help on their format.") | ||
| 42 | |||
| 37 | ;; Match test run failures and panics during compilation as | 43 | ;; Match test run failures and panics during compilation as |
| 38 | ;; compilation warnings | 44 | ;; compilation warnings |
| 39 | (defvar cargo-compilation-regexps | 45 | (defvar cargo-compilation-regexps |
| @@ -75,6 +81,9 @@ the compilation window until the top of the error is visible." | |||
| 75 | (add-to-list 'compilation-error-regexp-alist 'rustc-colon) | 81 | (add-to-list 'compilation-error-regexp-alist 'rustc-colon) |
| 76 | (add-to-list 'compilation-error-regexp-alist-alist | 82 | (add-to-list 'compilation-error-regexp-alist-alist |
| 77 | (cons 'cargo cargo-compilation-regexps)) | 83 | (cons 'cargo cargo-compilation-regexps)) |
| 84 | (add-to-list 'compilation-error-regexp-alist-alist | ||
| 85 | (cons 'rustc-panics rustc-panics-compilation-regexps)) | ||
| 86 | (add-to-list 'compilation-error-regexp-alist 'rustc-panics) | ||
| 78 | (add-to-list 'compilation-error-regexp-alist 'cargo) | 87 | (add-to-list 'compilation-error-regexp-alist 'cargo) |
| 79 | (add-hook 'next-error-hook #'rustc-scroll-down-after-next-error))) | 88 | (add-hook 'next-error-hook #'rustc-scroll-down-after-next-error))) |
| 80 | 89 | ||
