From 470aecc99f3df4c43a1fc3f6fadf01d8a2f710d3 Mon Sep 17 00:00:00 2001 From: Justin Barclay Date: Sun, 3 Nov 2024 14:42:49 -0800 Subject: [PATCH] feat: only report message if other backends aren't running --- parinfer-rust-mode.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/parinfer-rust-mode.el b/parinfer-rust-mode.el index 9c5edf7..a221b40 100644 --- a/parinfer-rust-mode.el +++ b/parinfer-rust-mode.el @@ -627,10 +627,13 @@ CHANGES." parinfer-rust--in-debug) (parinfer-rust-debug "./parinfer-rust-debug.txt" options answer)) (setq parinfer-rust--errors (list parinfer-error)) - (if parinfer-error + ;; If we have an error and are not being reported by a backend, warn the user + (if (and parinfer-error + (not (memq 'parinfer-rust flycheck--automatically-enabled-checkers)) + (not (memq 'parinfer-rust-flymake (flymake-reporting-backends)))) (message "Problem on line %s: %s" (plist-get parinfer-error :line_no) - (plist-get parinfer-error :message)) ;; TODO - Handler errors + (plist-get parinfer-error :message)) ;; This stops Emacs from flickering when scrolling (if (not (string-equal parinfer-rust--previous-buffer-text replacement-string)) (save-mark-and-excursion