From 9ebb42816eced8a6e21a1e1a5ab40f38c2b77971 Mon Sep 17 00:00:00 2001 From: roife Date: Tue, 5 Dec 2023 13:04:17 +0800 Subject: [PATCH] Support goto-error like 'compile' for 'clippy' --- rustic-compile.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rustic-compile.el b/rustic-compile.el index bce6d79..ea312e4 100644 --- a/rustic-compile.el +++ b/rustic-compile.el @@ -464,7 +464,7 @@ Buffers are formatted after saving if turned on by `rustic-format-trigger'." "Provide possibility use `compile-goto-error' on line numbers in compilation buffers. This hook checks if there's a line number at the beginning of the current line in an error section." - (-if-let* ((rustic-p (eq major-mode 'rustic-compilation-mode)) + (-if-let* ((rustic-p (derived-mode-p 'rustic-compilation-mode)) (default-directory rustic-compilation-workspace) (line-contents (buffer-substring-no-properties (line-beginning-position)