branch: main commit 28599717fb1d1d15cbd2a0e80cf9b73852e01645 Author: Ikumi Keita <ik...@ikumi.que.jp> Commit: Ikumi Keita <ik...@ikumi.que.jp>
Don't show confusing message * tex.el (TeX-TeX-sentinel-check): Don't leave message suggesting invalid key bind when error overview window is opened. --- tex.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tex.el b/tex.el index ab743d24..93f22520 100644 --- a/tex.el +++ b/tex.el @@ -8502,9 +8502,12 @@ Return nil only if no errors were found." (file-exists-p (TeX-match-buffer 1))) (throw 'found t)))) (progn - (message "%s errors in `%s'. Use %s to display." name (buffer-name) - (substitute-command-keys - "\\<TeX-mode-map>\\[TeX-next-error]")) + (if TeX-error-overview-open-after-TeX-run + ;; Don't leave inconsistent message. + (message nil) + (message "%s errors in `%s'. Use %s to display." name (buffer-name) + (substitute-command-keys + "\\<TeX-mode-map>\\[TeX-next-error]"))) (setq TeX-command-next TeX-command-default) ;; error reported to TeX-error-report-switches (setq TeX-error-report-switches