Skip to content

Commit

Permalink
Set next-error-last-buffer when running interactively
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiase committed Sep 4, 2023
1 parent 9e75ae5 commit f403808
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions relint.el
Original file line number Diff line number Diff line change
Expand Up @@ -2638,6 +2638,11 @@ STRING-START is the start of the string literal (first double quote)."
(format " (%s suppressed)" suppressed)))))
(unless (or quiet (and noninteractive (zerop errors)))
(unless noninteractive
;; Only set `next-error-last-buffer' when there is an actual
;; diagnostic to jump to, to avoid unnecessarily losing track
;; of the previous next-error buffer if any.
(when (and error-buffer (> errors suppressed))
(setq next-error-last-buffer error-buffer))
(relint--add-to-error-buffer error-buffer
(format "\nFinished -- %s.\n" msg)))
(message "relint: %s." msg))))
Expand Down

0 comments on commit f403808

Please sign in to comment.