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

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

[nongnu] elpa/rust-mode 888f3de 442/486: rust--format-fix-rustfmt-buffer


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode 888f3de 442/486: rust--format-fix-rustfmt-buffer: replace "stdin:" as well as "<stdin>:".
Date: Sat, 7 Aug 2021 09:26:11 -0400 (EDT)

branch: elpa/rust-mode
commit 888f3de9922ff648dfb0a464ff8587e76bd0369a
Author: Nathan Moreau <nathan.moreau@m4x.org>
Commit: Nathan Moreau <nathan.moreau@m4x.org>

    rust--format-fix-rustfmt-buffer: replace "stdin:" as well as "<stdin>:".
---
 rust-mode.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rust-mode.el b/rust-mode.el
index f91d5ff..154978b 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -1484,6 +1484,8 @@ This is written mainly to be used as 
`end-of-defun-function' for Rust."
   (with-current-buffer (get-buffer rust-rustfmt-buffername)
     (goto-char (point-min))
     (while (re-search-forward "--> <stdin>:" nil t)
+      (replace-match (format "--> %s:" buffer-name)))
+    (while (re-search-forward "--> stdin:" nil t)
       (replace-match (format "--> %s:" buffer-name)))))
 
 ;; If rust-mode has been configured to navigate to source of the error



reply via email to

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