From 891371df52c0c9fc4d70731005f880c953b0073b Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 24 Dec 2022 14:17:20 +0800 Subject: Prevent from generating the redundant error messages in minibuffer. --- rust-rustfmt.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rust-rustfmt.el b/rust-rustfmt.el index ff5ba25..1f32c90 100644 --- a/rust-rustfmt.el +++ b/rust-rustfmt.el @@ -149,7 +149,8 @@ rustfmt complain in the echo area." (goto-char (point-min)) (forward-line (1- (car target-point))) (forward-char (1- (cdr target-point)))) - (message target-problem))))) + (unless rust-format-show-buffer + (message target-problem)))))) (defconst rust--format-word "\ \\b\\(else\\|enum\\|fn\\|for\\|if\\|let\\|loop\\|\ -- cgit v1.2.3