GNU bug report logs - #24771
11.89.6; C-c C-c misses one LaTeX run in BibTeX documents

Previous Next

Package: auctex;

Reported by: Uwe Siart <uwe.siart <at> tum.de>

Date: Sun, 23 Oct 2016 07:38:02 UTC

Severity: normal

Tags: notabug

Found in version 11.89.6

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 24771 in the body.
You can then email your comments to 24771 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-auctex <at> gnu.org:
bug#24771; Package auctex. (Sun, 23 Oct 2016 07:38:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Uwe Siart <uwe.siart <at> tum.de>:
New bug report received and forwarded. Copy sent to bug-auctex <at> gnu.org. (Sun, 23 Oct 2016 07:38:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Uwe Siart <uwe.siart <at> tum.de>
To: bug-auctex <at> gnu.org
Subject: 11.89.6; C-c C-c misses one LaTeX run in BibTeX documents
Date: Sun, 23 Oct 2016 09:36:47 +0200

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.

Be sure to consult the FAQ section in the manual before submitting
a bug report.  In addition check if the bug is reproducable with an
up-to-date version of AUCTeX.  So please upgrade to the version
available from http://www.gnu.org/software/auctex/ if your
installation is older than the one available from the web site.

If the bug is triggered by a specific (La)TeX file, you should try
to produce a minimal sample file showing the problem and include it
in your report.

Your report will be posted for the auctex package at the GNU bug
tracker.  Visit http://debbugs.gnu.org/cgi/pkgreport.cgi?pkg=auctex
to browse existing AUCTeX bugs.
------------------------------------------------------------------------

When I compile documents that use BibTeX by "C-c C-c" or by "C-c C-a"
AUCTeX 11.89.6 calls the viewer before all citations are resolved. In
other words, "C-c C-c" calls the command "View" even after the warning
"There were unresolved citations". AFAIR it worke well in 11.89.5.

Thanks and regards,
Uwe

Emacs  : GNU Emacs 25.1.50.1 (i686-pc-mingw32)
 of 2016-10-19
Package: 11.89.6

current state:
==============
(setq
 AUCTeX-date "2016-10-14"
 window-system 'w32
 LaTeX-version "2e"
 TeX-style-path '("~/.emacs.d/auctex" "c:/Dokumente und Einstellungen/siart/.emacs.d/elpa/auctex-11.89.6/style"
                  "c:/Dokumente und Einstellungen/siart/.emacs.d/auctex/auto"
                  "c:/Dokumente und Einstellungen/siart/.emacs.d/auctex/style" "auto" "style")
 TeX-auto-save t
 TeX-parse-self t
 TeX-master t
 TeX-command-list '(("TeX" "%(PDF)%(tex) %(file-line-error) %(extraopts) %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil
                     (plain-tex-mode ams-tex-mode texinfo-mode) :help "Run plain TeX")
                    ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX")
                    ("Makeinfo" "makeinfo %(extraopts) %t" TeX-run-compile nil (texinfo-mode) :help
                     "Run Makeinfo with Info output")
                    ("Makeinfo HTML" "makeinfo %(extraopts) --html %t" TeX-run-compile nil (texinfo-mode) :help
                     "Run Makeinfo with HTML output")
                    ("AmSTeX" "amstex %(PDFout) %(extraopts) %`%S%(mode)%' %t" TeX-run-TeX nil (ams-tex-mode) :help
                     "Run AMSTeX")
                    ("ConTeXt" "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode)
                     :help "Run ConTeXt once")
                    ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help
                     "Run ConTeXt until completion")
                    ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX")
                    ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber")
                    ("View" "%V" TeX-run-discard-or-function t t :help "Run Viewer")
                    ("Print" "%p" TeX-run-command t t :help "Print the file")
                    ("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible TeX-queue-command)
                    ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t t :help "Generate PostScript file")
                    ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil t :help "Convert DVI file to PostScript")
                    ("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil t :help "Convert DVI file to PDF with dvipdfmx")
                    ("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil t :help "Convert PostScript file to PDF")
                    ("Index" "makeindex %s" TeX-run-index nil t :help "Run makeindex to create index file")
                    ("Xindy" "texindy %s" TeX-run-command nil t :help "Run xindy to create index file")
                    ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for correctness")
                    ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode) :help
                     "Check LaTeX file for common mistakes")
                    ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help "Spell-check the document")
                    ("Clean" "TeX-clean" TeX-run-function nil t :help "Delete generated intermediate files")
                    ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help
                     "Delete generated intermediate and output files")
                    ("Other" "" TeX-run-command t t :help "Run an arbitrary command"))
 )
-- 
Dr.-Ing. Uwe Siart
Chair of High-Frequency Engineering
Technical University of Munich (TUM)
Arcisstr. 21, 80333 München, Germany
Email: uwe.siart <at> tum.de
Tel.:  +49.89.289.23374
Fax:   +49.89.289.23365




Information forwarded to bug-auctex <at> gnu.org:
bug#24771; Package auctex. (Sun, 23 Oct 2016 08:30:02 GMT) Full text and rfc822 format available.

Message #8 received at 24771 <at> debbugs.gnu.org (full text, mbox):

From: Mosè Giordano <mose <at> gnu.org>
To: Uwe Siart <uwe.siart <at> tum.de>
Cc: 24771 <at> debbugs.gnu.org
Subject: Re: bug#24771: 11.89.6;
 C-c C-c misses one LaTeX run in BibTeX documents
Date: Sun, 23 Oct 2016 10:28:21 +0200
Hi Uwe,

2016-10-23 9:36 GMT+02:00 Uwe Siart <uwe.siart <at> tum.de>:
> When I compile documents that use BibTeX by "C-c C-c" or by "C-c C-a"
> AUCTeX 11.89.6 calls the viewer before all citations are resolved. In
> other words, "C-c C-c" calls the command "View" even after the warning
> "There were unresolved citations". AFAIR it worke well in 11.89.5.

Could you please share a minimal working example (TeX document +
BibTeX bibliography) reproducing this error?  Between 11.89.5 and
11.89.6 I did play with the BibTeX sentinel in order to fix a problem
similar to the one you're reporting now when bibtex issues warnings.
Have I messed up something else?

Bye,
Mosè




Information forwarded to bug-auctex <at> gnu.org:
bug#24771; Package auctex. (Sun, 23 Oct 2016 09:18:01 GMT) Full text and rfc822 format available.

Message #11 received at 24771 <at> debbugs.gnu.org (full text, mbox):

From: "Uwe Siart" <uwe.siart <at> tum.de>
To: "Mosè Giordano" <mose <at> gnu.org>
Cc: 24771 <at> debbugs.gnu.org
Subject: Re: bug#24771: 11.89.6;
 C-c C-c misses one LaTeX run in BibTeX documents
Date: Sun, 23 Oct 2016 11:17:47 +0200
On 23 Oct 2016 at 10:28, Mosè Giordano wrote:

> Hi Uwe,
>
> 2016-10-23 9:36 GMT+02:00 Uwe Siart <uwe.siart <at> tum.de>:
> > When I compile documents that use BibTeX by "C-c C-c" or by "C-c C-a"
> > AUCTeX 11.89.6 calls the viewer before all citations are resolved. In
> > other words, "C-c C-c" calls the command "View" even after the warning
> > "There were unresolved citations". AFAIR it worke well in 11.89.5.
>
> Could you please share a minimal working example (TeX document +
> BibTeX bibliography) reproducing this error?  Between 11.89.5 and
> 11.89.6 I did play with the BibTeX sentinel in order to fix a problem
> similar to the one you're reporting now when bibtex issues warnings.
> Have I messed up something else?

By trying to generate the MWE I think I found the culprit. Perhaps
nothing to do with 11.89.6 but could have happend before as well.

The described behaviour is observed when there are multiply defined
labels.

When I compile the following MWE by "C-c C-a" it ends up with undefined
references (one LaTeX run too few):

\documentclass{article}
\begin{filecontents}{test-a.bib}
@Article{reed:1958:398,
author       = {Reed, John},
title        = {The Multiple Branch Waveguide Coupler},
journal      = {IRE Trans. Microw. Theory Techn.},
year         = {1958},
volume       = {6},
number       = {4},
pages        = {398--403},
month        = {Apr},
}
\end{filecontents}
\begin{document}
Test \cite{reed:1958:398}
\begin{figure}
  \caption{Caption A}
  \label{fig:A}
\end{figure}
\begin{figure}
  \caption{Caption B}
  \label{fig:A}
\end{figure}
\bibliographystyle{plain}
\bibliography{test-a}
\end{document}


--
Uwe





Information forwarded to bug-auctex <at> gnu.org:
bug#24771; Package auctex. (Sun, 23 Oct 2016 10:00:02 GMT) Full text and rfc822 format available.

Message #14 received at 24771 <at> debbugs.gnu.org (full text, mbox):

From: Mosè Giordano <mose <at> gnu.org>
To: Uwe Siart <uwe.siart <at> tum.de>
Cc: 24771 <at> debbugs.gnu.org
Subject: Re: bug#24771: 11.89.6;
 C-c C-c misses one LaTeX run in BibTeX documents
Date: Sun, 23 Oct 2016 11:58:34 +0200
Hi Uwe,

2016-10-23 11:17 GMT+02:00 Uwe Siart <uwe.siart <at> tum.de>:
> By trying to generate the MWE I think I found the culprit. Perhaps
> nothing to do with 11.89.6 but could have happend before as well.
>
> The described behaviour is observed when there are multiply defined
> labels.
>
> When I compile the following MWE by "C-c C-a" it ends up with undefined
> references (one LaTeX run too few):
>
> \documentclass{article}
> \begin{filecontents}{test-a.bib}
> @Article{reed:1958:398,
> author       = {Reed, John},
> title        = {The Multiple Branch Waveguide Coupler},
> journal      = {IRE Trans. Microw. Theory Techn.},
> year         = {1958},
> volume       = {6},
> number       = {4},
> pages        = {398--403},
> month        = {Apr},
> }
> \end{filecontents}
> \begin{document}
> Test \cite{reed:1958:398}
> \begin{figure}
>   \caption{Caption A}
>   \label{fig:A}
> \end{figure}
> \begin{figure}
>   \caption{Caption B}
>   \label{fig:A}
> \end{figure}
> \bibliographystyle{plain}
> \bibliography{test-a}
> \end{document}

Thanks for the MWE.  Indeed, it has nothing to do with the BibTeX
sentinel but with the LaTeX one.  The problems pops up only when there
is a BibTeX bibliography by chance.

Your document produces two relevant warnings:

    LaTeX Warning: Label `fig:A' multiply defined.
    LaTeX Warning: Citation `reed:1958:398' on page 1 undefined on
input line 15.

but `TeX-LaTeX-sentinel' knows only about the second one.  When it
finds it, it suggests to directly open the viewer.  The problem here
is that LaTeX does not help AUCTeX to decide the right thing to do.
If there weren't the multiple label (or no label at all), there will
be also the warning

    LaTeX Warning: Label(s) may have changed. Rerun to get
cross-references right.

that in this case is missing.  I would say that AUCTeX is doing the
right thing given the information it has.

This is a corner case that I don't know how to deal with.  Do you or
someone else have suggestion about what's the best solution?

Bye,
Mosè




Information forwarded to bug-auctex <at> gnu.org:
bug#24771; Package auctex. (Sun, 23 Oct 2016 10:16:01 GMT) Full text and rfc822 format available.

Message #17 received at 24771 <at> debbugs.gnu.org (full text, mbox):

From: Uwe Siart <uwe.siart <at> tum.de>
To: Mosè Giordano <mose <at> gnu.org>
Cc: 24771 <at> debbugs.gnu.org
Subject: Re: bug#24771: 11.89.6;
 C-c C-c misses one LaTeX run in BibTeX documents
Date: Sun, 23 Oct 2016 12:15:42 +0200
Hello Mosè,

Mosè Giordano <mose <at> gnu.org> writes:

> This is a corner case that I don't know how to deal with. Do you or
> someone else have suggestion about what's the best solution?

No, I don't have a good suggestion for this. As far as I am concerned I
would say that I can live with it. The wrong behaviour of AUCTeX just
happens in consequence of a defective document. Once the flaw is fixed
AUCTeX also compiles fine again.

So I would say it's not a bug but just a lack of robustness.

The only trouble is that for the user it takes a while to see the
connection.

-- 
Uwe




Added tag(s) notabug. Request was from Arash Esbati <arash <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 04 Mar 2024 22:02:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 24771 <at> debbugs.gnu.org and Uwe Siart <uwe.siart <at> tum.de> Request was from Arash Esbati <arash <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 04 Mar 2024 22:02:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 02 Apr 2024 11:24:28 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 38 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.