branch: elpa
commit 84d31ca5e0b7f0ae767f309f165e342d55bbce5a
Author: Mosè Giordano <>
Commit: Mosè Giordano <>

    Fix default command after running BibTeX with warnings
    * tex-buf.el (TeX-BibTeX-sentinel): Always set `TeX-command-next' to
      `TeX-command-default'.  As it was before, if BibTeX issued
      warnings (or errors) the default next command would have been "View",
      which is in no case what the user would expect.  This is the same
      logic used in Biber sentinel (which has, in addition, a fatal error
      after which Biber is run again).
 tex-buf.el |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tex-buf.el b/tex-buf.el
index cf2ec78..94e3ece 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -1649,8 +1649,9 @@ Rerun to get mark in right position\\." nil t)
     (message (concat "BibTeX finished successfully. "
-                    "Run LaTeX again to get citations right."))
-  (setq TeX-command-next TeX-command-default))))
+                    "Run LaTeX again to get citations right.")))
+   ;; In any case, run the default next command.
+   (setq TeX-command-next TeX-command-default)))
 (defun TeX-Biber-sentinel (_process _name)
   "Cleanup TeX output buffer after running Biber."

Reply via email to