GNU bug report logs -
#24668
11.89.5; Parse failure if long comment at head of file
Previous Next
Reported by: feb <at> maths.bath.ac.uk
Date: Tue, 11 Oct 2016 15:44:01 UTC
Severity: normal
Tags: notabug
Found in version 11.89.5
Done: Mosè Giordano <mose <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 24668 in the body.
You can then email your comments to 24668 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-auctex <at> gnu.org
:
bug#24668
; Package
auctex
.
(Tue, 11 Oct 2016 15:44:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
feb <at> maths.bath.ac.uk
:
New bug report received and forwarded. Copy sent to
bug-auctex <at> gnu.org
.
(Tue, 11 Oct 2016 15:44:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Greetings,
My LaTeX file starts with a long (59 line) comment
containing header information.
I noticed that the file was not being parsed and no style
file written to ./auto or read from there.
If I remove the header and do C-c C-n, parsing occurs as I
would expect.
If I put the \documentstyle line in line 1 of the file and
then the header, parsing also fails.
I suspect this must be a regression caused by a recent
change as I have not noticed this behaviour before.
Many thanks,
---Fran Burstall
------------------------------------------------------------------------
Emacs : GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5)
of 2015-03-07 on trouble, modified by Debian
Package: 11.89.5
current state:
==============
(setq
AUCTeX-date "2016-09-01"
window-system 'x
LaTeX-version "2e"
TeX-style-path '("~/.emacs.d/auctex"
"/u/c/feb/.emacs.d/elpa/auctex-11.89.5/style"
"/u/c/feb/.emacs.d/auctex/auto" "/u/c/feb/.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"))
)
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#24668
; Package
auctex
.
(Tue, 11 Oct 2016 23:24:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 24668 <at> debbugs.gnu.org (full text, mbox):
Hi Fran,
2016-10-11 17:42 GMT+02:00 Fran Burstall <feb <at> maths.bath.ac.uk>:
> Greetings,
>
> My LaTeX file starts with a long (59 line) comment
> containing header information.
>
> I noticed that the file was not being parsed and no style
> file written to ./auto or read from there.
>
> If I remove the header and do C-c C-n, parsing occurs as I
> would expect.
>
> If I put the \documentstyle line in line 1 of the file and
> then the header, parsing also fails.
>
> I suspect this must be a regression caused by a recent
> change as I have not noticed this behaviour before.
Could you please show us minimal (non-)working examples of the
different cases you described? I was not able to reproduce your
problem, but I'm not sure I got what you mean.
Bye,
Mosè
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#24668
; Package
auctex
.
(Wed, 12 Oct 2016 08:31:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 24668 <at> debbugs.gnu.org (full text, mbox):
Hi Fran,
2016-10-12 10:18 GMT+02:00 Fran Burstall <f.e.burstall <at> bath.ac.uk>:
> Hi Mosè,
>
> Here is such an example.
>
> I would expect auctex to parse this and write a style file to ./auto but,
> for me, it does not unless I remove the long comment at the start of the
> file.
Thank you. I can't reproduce your problem. For me, C-c C-n does
create the auto-generated file. The variable `TeX-auto-parse-length'
controls the length of the buffer that is parsed. Default value is
999999, which is much higher than the length of your file ((point-max)
== 2205). What's the value of `TeX-auto-parse-length' for you? issue
C-h v TeX-auto-parse-length RET
after you load AUCTeX (for example after opening a *TeX file) to check it.
Bye,
Mosè
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#24668
; Package
auctex
.
(Wed, 12 Oct 2016 10:30:02 GMT)
Full text and
rfc822 format available.
Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):
Le 11/10/2016 à 17:42, Fran Burstall a écrit :
> If I put the \documentstyle line in line 1 of the file and
> then the header, parsing also fails.
shot in the dark as I don't know your file, but is this a
typo and you meant \documentclass, or are you using LaTeX 2.09 ?
(maybe irrelevant to your problem)
Jean-Francois
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#24668
; Package
auctex
.
(Wed, 12 Oct 2016 15:46:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 24668 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Mosè,
Here is such an example.
I would expect auctex to parse this and write a style file to ./auto but,
for me, it does not unless I remove the long comment at the start of the
file.
Best,
---Fran
On 12 October 2016 at 00:23, Mosè Giordano <mose <at> gnu.org> wrote:
> Hi Fran,
>
> 2016-10-11 17:42 GMT+02:00 Fran Burstall <feb <at> maths.bath.ac.uk>:
> > Greetings,
> >
> > My LaTeX file starts with a long (59 line) comment
> > containing header information.
> >
> > I noticed that the file was not being parsed and no style
> > file written to ./auto or read from there.
> >
> > If I remove the header and do C-c C-n, parsing occurs as I
> > would expect.
> >
> > If I put the \documentstyle line in line 1 of the file and
> > then the header, parsing also fails.
> >
> > I suspect this must be a regression caused by a recent
> > change as I have not noticed this behaviour before.
>
> Could you please show us minimal (non-)working examples of the
> different cases you described? I was not able to reproduce your
> problem, but I'm not sure I got what you mean.
>
> Bye,
> Mosè
>
[Message part 2 (text/html, inline)]
[minimal.tex (application/x-tex, attachment)]
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#24668
; Package
auctex
.
(Wed, 12 Oct 2016 15:46:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 24668 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Dear Mosè,
That was the problem: I had set TeX-auto-parse-length to 2000 (thinking,
foolishly, that this meant lines not characters).
Sorry to have bothered you!
Thanks for yr help,
---Fran
On 12 October 2016 at 09:29, Mosè Giordano <mose <at> gnu.org> wrote:
> Hi Fran,
>
> 2016-10-12 10:18 GMT+02:00 Fran Burstall <f.e.burstall <at> bath.ac.uk>:
> > Hi Mosè,
> >
> > Here is such an example.
> >
> > I would expect auctex to parse this and write a style file to ./auto but,
> > for me, it does not unless I remove the long comment at the start of the
> > file.
>
> Thank you. I can't reproduce your problem. For me, C-c C-n does
> create the auto-generated file. The variable `TeX-auto-parse-length'
> controls the length of the buffer that is parsed. Default value is
> 999999, which is much higher than the length of your file ((point-max)
> == 2205). What's the value of `TeX-auto-parse-length' for you? issue
>
> C-h v TeX-auto-parse-length RET
>
> after you load AUCTeX (for example after opening a *TeX file) to check it.
>
> Bye,
> Mosè
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#24668
; Package
auctex
.
(Wed, 12 Oct 2016 16:21:01 GMT)
Full text and
rfc822 format available.
Message #23 received at submit <at> debbugs.gnu.org (full text, mbox):
Le 12/10/2016 à 12:28, jfbu a écrit :
> Le 11/10/2016 à 17:42, Fran Burstall a écrit :
>> If I put the \documentstyle line in line 1 of the file and
>> then the header, parsing also fails.
>
> shot in the dark as I don't know your file, but is this a
> typo and you meant \documentclass, or are you using LaTeX 2.09 ?
>
> (maybe irrelevant to your problem)
>
indeed as your file which I saw later does have \documentclass
JF
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#24668
; Package
auctex
.
(Thu, 13 Oct 2016 13:24:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 24668 <at> debbugs.gnu.org (full text, mbox):
close 24668
tags 24668 notabug
thanks
Hi Fran,
2016-10-12 12:17 GMT+02:00 Fran Burstall <f.e.burstall <at> bath.ac.uk>:
> Dear Mosè,
>
> That was the problem: I had set TeX-auto-parse-length to 2000 (thinking,
> foolishly, that this meant lines not characters).
Good to know you solved your problem. I'm closing this issue.
Bye,
Mosè
bug closed, send any further explanations to
24668 <at> debbugs.gnu.org and feb <at> maths.bath.ac.uk
Request was from
Mosè Giordano <mose <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Thu, 13 Oct 2016 13:24:02 GMT)
Full text and
rfc822 format available.
Added tag(s) notabug.
Request was from
Mosè Giordano <mose <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Thu, 13 Oct 2016 13:24: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
.
(Fri, 11 Nov 2016 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 222 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.