unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: Fred Krogh <fkrogh@mathalacarte.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: LaTeX/Emacs problem
Date: Fri, 11 Jan 2013 00:13:22 +0100	[thread overview]
Message-ID: <4246C824-E2EC-45F7-B38D-BE91B86A4F1C@Web.DE> (raw)
In-Reply-To: <kcner6$edo$1@speranza.aioe.org>


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. It's even two bugs: why does it ask me for the master file? The opened file in the buffer is *obviously* 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____




  reply	other threads:[~2013-01-10 23:13 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 [this message]
2013-01-11  4:24                 ` Pierre Lorenzon

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4246C824-E2EC-45F7-B38D-BE91B86A4F1C@Web.DE \
    --to=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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).