From: Pierre Lorenzon <devel@pollock-nageoire.net>
To: Peter_Dyballa@Web.DE
Cc: fkrogh@mathalacarte.com, help-gnu-emacs@gnu.org
Subject: Re: LaTeX/Emacs problem
Date: Fri, 11 Jan 2013 05:24:07 +0100 (CET) [thread overview]
Message-ID: <20130111.052407.104064374.devel@pollock-nageoire.net> (raw)
In-Reply-To: <4246C824-E2EC-45F7-B38D-BE91B86A4F1C@Web.DE>
From: Peter Dyballa <Peter_Dyballa@Web.DE>
Subject: Re: LaTeX/Emacs problem
Date: Fri, 11 Jan 2013 00:13:22 +0100
>
> Am 10.01.2013 um 23:20 schrieb Fred Krogh:
>
>> Here is an example
>>
>> \documentclass{article}
>> %\usepackage{hyperref}
>> \begin{document}
>> \Nothing to see here folks.
>> \end{document}
>>
>> Run latex from inside emacs and this will flag the "\Nothing" and position the cursor on that line. Remove the % at the start of the second line, delete the *TeX Help buffer, do the same, and you will get "Error occured after last TeX file closed" and nothing else.
>
> Not using GNU Emacs I get in the console:
>
> This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
> restricted \write18 enabled.
> entering extended mode
> (./Krogh.tex
> LaTeX2e <2011/06/27>
> Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, german-x-2012-05-30, ngerman-x-2012-05-30, ukenglish, usenglishmax, french, friulan, german, ngerman, swissgerman, romansh, loaded.
> (/usr/local/texlive/2012/texmf-dist/tex/latex/base/article.cls
> Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
> (/usr/local/texlive/2012/texmf-dist/tex/latex/base/size10.clo)) (./Krogh.aux)
> ! Undefined control sequence.
> l.4 \Nothing
> to see here folks.
> ?
> ! Emergency stop.
> l.4 \Nothing
> to see here folks.
> ! ==> Fatal error occurred, no output PDF file produced!
> Transcript written on Krogh.log.
>
> And this is the output from AUCTeX 11.86 from inside GNU Emacs 24.3.50:
>
> Running `LaTeX' on `Krogh' with ``pdflatex -interaction=nonstopmode "\input" Krogh.tex''
> This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
> restricted \write18 enabled.
> entering extended mode
> LaTeX2e <2011/06/27>
> Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, german-x-2012-05-30, ngerman-x-2012-05-30, ukenglish, usenglishmax, french, friulan, german, ngerman, swissgerman, romansh, loaded.
> (./Krogh.tex (/usr/local/texlive/2012/texmf-dist/tex/latex/base/article.cls
> Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
> (/usr/local/texlive/2012/texmf-dist/tex/latex/base/size10.clo)) (./Krogh.aux)
> ! Undefined control sequence.
> l.4 \Nothing
> to see here folks.
> [1{/usr/local/texlive/2012/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./Krogh.aux) )
> (see the transcript file for additional information)</usr/local/texlive/2012/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
> Output written on Krogh.pdf (1 page, 12041 bytes).
> Transcript written on Krogh.log.
>
> LaTeX exited abnormally with code 1 at Thu Jan 10 23:39:58
>
> Quite similar behaviour. (I do need to update my hyphenations configuration! I'll never use Friulan or Rumansh!) When I then choose from AUCTeX's Commands menu the item "Next Error" it shows me that error and open a buffer with that contents:
>
> ERROR: Undefined control sequence.
>
> --- TeX said ---
> l.4 \Nothing
> to see here folks.
> --- HELP ---
> TeX encountered an unknown command name. You probably misspelled the
> name. If this message occurs when a LaTeX command is being processed,
> the command is probably in the wrong place---for example, the error
> can be produced by an \item command that's not inside a list-making
> environment. The error can also be caused by a missing \documentclass
> command.
>
> When I then remove the comment sign, save, and run LaTeX again, I get the same error. When I then choose the same command, AUCTeX asks me for the master file. When I give the correct answer, it opens *TeX Help* buffer with the same contents – and buries the buffer with the TeX file with an empty "TeX Live 2012" buffer. This latter effect certainly is not needed.
>
>
> When I open an empty TeX file under the control of AUCTeX, it asks me for the master file. I show it the master file by pressing the RETURN key. I insert your example and get as buffer and file contents:
>
> \documentclass{article}
> %\usepackage{hyperref}
> \begin{document}
> \Nothing to see here folks.
> \end{document}
>
> %%% Local Variables:
> %%% TeX-master: t
> %%% End:
>
> With the commented line the behaviour is as before: OK. With the uncommented line, the behaviour is as before: not OK!
>
> This is a bug in AUCTeX. I think so as I already said in my
previous message. Maybe not in auctex in fact but in this
emacs librairy designed to parse process output. Maybe not
really a bug but a non suitable configuration (almost the
same !)
> It's even two bugs: why does it ask
> me for the master file? The opened file in the buffer is
> *obviously*
Not for auctex until the local variable TeX-master has not
being correctly set. But auctex behavior can be customized at
this point I think.
P.
> the master. To report it, choose "Report Bug"
> from the Preview menu!
>
> Similar behaviour in GNU Emacs 24.2 launched with -Q. I consider reporting mine tomorrow. I'll have to read the documentation to be sure that it's not me who is buggy.
>
> --
> Greetings
>
> Pete
>
>
> "Evolution" o __o _o _
> °\___o /0~ -\<, ^\___ /=\\_/-%
> oo~_______ /\ /\______/ \_________O/ O_______________o===>-->O--o____
>
>
prev parent reply other threads:[~2013-01-11 4:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-06 21:52 LaTeX/Emacs problem Fred Krogh
2013-01-06 22:41 ` Peter Dyballa
[not found] ` <mailman.16824.1357512118.855.help-gnu-emacs@gnu.org>
2013-01-06 23:15 ` Fred Krogh
2013-01-07 0:20 ` Peter Dyballa
2013-01-07 5:58 ` Fred Krogh
2013-01-07 6:11 ` Fred Krogh
2013-01-07 6:15 ` Fred Krogh
2013-01-07 7:48 ` Pierre Lorenzon
2013-01-07 10:09 ` Peter Dyballa
[not found] ` <mailman.16844.1357545139.855.help-gnu-emacs@gnu.org>
2013-01-07 16:25 ` Fred Krogh
2013-01-07 17:27 ` Peter Dyballa
[not found] ` <mailman.16860.1357575910.855.help-gnu-emacs@gnu.org>
2013-01-10 22:20 ` Fred Krogh
2013-01-10 23:13 ` Peter Dyballa
2013-01-11 4:24 ` Pierre Lorenzon [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130111.052407.104064374.devel@pollock-nageoire.net \
--to=devel@pollock-nageoire.net \
--cc=Peter_Dyballa@Web.DE \
--cc=fkrogh@mathalacarte.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.