emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] elpa 84d31ca 10/16: Fix default command after running BibTeX with


From: Tassilo Horn
Subject: [elpa] elpa 84d31ca 10/16: Fix default command after running BibTeX with warnings
Date: Fri, 14 Oct 2016 16:03:33 +0000 (UTC)

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

    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)
              "\\<TeX-mode-map>\\[TeX-recenter-output-buffer]")))
    (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

[Prev in Thread] Current Thread [Next in Thread]