Here is mytest.tex (a minimal ConTeXt file): --8<---------------cut here---------------start------------->8--- \input null \starttext $\Vbar$ \stoptext --8<---------------cut here---------------end--------------->8---
After running context with C-c C-c (but see below: I use "context" instead of "texexec"), C-c ` fails with "Error occured after last TeX file closed" and has this backtrace: signal(error ("Error occured after last TeX file closed")) error("Error occured after last TeX file closed") TeX-error() TeX-parse-error(#<buffer mytest.tex>) TeX-parse-TeX(nil) TeX-next-error(nil) call-interactively(TeX-next-error nil nil) If I comment out the first line (putting "%" at the beginning of the line), then C-c ` works fine (it moves to the undefined \Vbar). (I wasn't expecting AucTeX to parse the output at all, because "context" output is quite different from "texexec" output, but it often handles it fine to my pleaseant surprise. The example here is one of the cases that it doesn't handle.) I run ConTeXt with C-c C-c but with the newer ConTeXt interface ("context" instead of "texexec"). My .emacs has a TeX-command-list that makes that modification, which is equivalent to this diff: --- /tmp/tex.el.old 2013-05-18 12:49:13.000000000 -0400 +++ /tmp/tex.el 2013-05-18 12:48:40.000000000 -0400 @@ -129,9 +129,9 @@ TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX") ;; support for ConTeXt --pg ;; first version of ConTeXt to support nonstopmode: 2003.2.10 - ("ConTeXt" "texexec --once --texutil %(execopts)%t" + ("ConTeXt" "context --once %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt once") - ("ConTeXt Full" "texexec %(execopts)%t" + ("ConTeXt Full" "context %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt until completion") ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX") Here are the contents of the tex output buffer in the case where the parsing fails. I'm also attaching it as a file in case mailers mangle any of the lines: --------------------------- tex output buffer ------------------------ Running `ConTeXt' on `mytest' with ``context --once --interface=en --nonstop mytest.tex'' mtx-context | run 1: luatex --fmt="/var/lib/texmf/luatex-cache/context/f919750633122078d706dd10f1cfd39b/formats/cont-en" --lua="/var/lib/texmf/luatex-cache/context/f919750633122078d706dd10f1cfd39b/formats/cont-en.lui" --backend="pdf" "./mytest.tex" \stoptext This is LuaTeX, Version beta-0.70.2-2012070301 (TeX Live 2012/Debian) \write18 enabled. (mytest.tex ConTeXt ver: 2012.05.30 11:26 MKIV fmt: 2013.4.11 int: english/english system > cont-new.mkiv loaded (/usr/share/texmf/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) system > mytest.top loaded (mytest.top ) fonts > latin modern fonts are not preloaded languages > language en is active (/usr/share/texlive/texmf-dist/tex/generic/misc/null.tex){/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} fonts > preloading latin modern fonts (second stage) fonts > typescripts > unknown: library 'loc' {/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} fonts > virtual math > unable to resolve name mapsfromchar fonts > fallback modern rm 12pt is loaded ! Undefined control sequence. system > tex > error on line 3 in file mytest.tex: Undefined control sequence ... 1 \input null 2 \starttext 3 >> $\Vbar$ 4 \stoptext 5 <recently read> \Vbar l.3 $\Vbar $ backend > xmp > using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1 )</usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf> mkiv lua stats > used config file - selfautodir:/share/texmf/web2c/texmfcnf.lua mkiv lua stats > used cache path - readable: '/var/lib/texmf/luatex-cache/context/f919750633122078d706dd10f1cfd39b' (order 1) mkiv lua stats > used cache path - readable: '/home/sanjoy/.texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b' (order 2) mkiv lua stats > used cache path - writable: '/home/sanjoy/.texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b' mkiv lua stats > resource resolver - loadtime 0.074 seconds, 2 scans with scantime 0.002 seconds, 0 shared scans, 46 found files, scanned paths: /etc/texmf /home/sanjoy/.texmf-var mkiv lua stats > stored bytecode data - 303 modules, 65 tables, 368 chunks mkiv lua stats > cleaned up reserved nodes - 39 nodes, 9 lists of 438 mkiv lua stats > node memory usage - 2 glue, 2 penalty, 9 attribute, 29 glue_spec, 3 attribute_list mkiv lua stats > node list callback tasks - 6 unique task lists, 5 instances (re)created, 133 calls mkiv lua stats > used backend - pdf (backend for directly generating pdf output) mkiv lua stats > loaded patterns - en::2 mkiv lua stats > jobdata time - 0.000 seconds saving, 0.001 seconds loading mkiv lua stats > callbacks - 260 direct, 567 indirect, 827 total mkiv lua stats > randomizer - resumed with value 0.65443952551784 mkiv lua stats > lxml preparation time - 0.000 seconds, 0 nodes, 11 lpath calls, 0 cached calls mkiv lua stats > result saved in file - mytest.pdf mkiv lua stats > loaded fonts - 33 files: stmary10.afm eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm mkiv lua stats > fonts load time - 0.385 seconds mkiv lua stats > luatex banner - this is luatex, version beta-0.70.2-2012070301 (tex live 2012/debian) mkiv lua stats > control sequences - 33669 of 65536 + 100000 mkiv lua stats > current memory usage - 34 MB (ctx: 35 MB) mkiv lua stats > runtime - 1.011 seconds, 1 processed pages, 1 shipped pages, 0.989 pages/second mtx-context | fatal error: return code: 1 ConTeXt exited abnormally with code 1 at Sat May 18 12:54:54 --------------------------- end tex output buffer ------------------------ Emacs : GNU Emacs 24.3.1 (i486-pc-linux-gnu, GTK+ Version 3.4.2) of 2013-04-13 on murphy, modified by Debian Package: 11.87 current state: ============== (setq AUCTeX-date "2012-11-30" window-system 'x LaTeX-version "2e" TeX-style-path '("/var/lib/auctex/emacs24/" "/usr/share/emacs/site-lisp/auctex/style" "/home/sanjoy/.emacs.d/auctex/auto" "/home/sanjoy/.emacs.d/auctex/style" "auto" "style") TeX-auto-save t TeX-parse-self t TeX-master t TeX-command-list '(("Runit" "./runit" TeX-run-TeX nil t :help "Run ./runit") ("Runit" "./runit" TeX-run-TeX nil t :help "Run ./runit") ("Runit" "./runit" TeX-run-TeX nil t :help "Run ./runit") ("Runit" "./runit" TeX-run-TeX nil t :help "Run ./runit") ("Runit" "./runit" TeX-run-TeX nil t :help "Run ./runit") ("Runit" "./runit" TeX-run-TeX nil t :help "Run ./runit") ("Runit" "./runit" TeX-run-TeX nil t :help "Run ./runit") ("Runit" "./runit" TeX-run-TeX nil t :help "Run ./runit") ("Runit" "./runit" TeX-run-TeX nil t :help "Run ./runit") ("Runit" "./runit" TeX-run-TeX nil t :help "Run ./runit") ("Runit" "./runit" TeX-run-TeX nil t :help "Run ./runit") ("Runit" "./runit" TeX-run-TeX nil t :help "Run ./runit") ("Runit" "./runit" TeX-run-TeX nil t :help "Run ./runit") ("Runit" "./runit" TeX-run-TeX nil t :help "Run ./runit") ("Runit" "./runit" TeX-run-TeX nil t :help "Run ./runit") ("Runit" "./runit" TeX-run-TeX nil t :help "Run ./runit") ("Runit" "./runit" TeX-run-TeX nil t :help "Run ./runit") ("Runit" "./runit" TeX-run-TeX nil t :help "Run ./runit") ("Runit" "./runit" TeX-run-TeX nil t :help "Run ./runit") ("TeX" "%(PDF)%(tex) %`%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 %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with Info output") ("Makeinfo HTML" "makeinfo --html %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with HTML output") ("AmSTeX" "%(PDF)amstex %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX") ("ConTeXt" "context --once %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt once") ("ConTeXt Full" "context %(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-command t t :help "Generate PostScript file") ("Index" "makeindex %s" TeX-run-command nil t :help "Create index file") ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for correctness") ("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") ) )
Running `ConTeXt' on `mytest' with ``context --once --interface=en --nonstop mytest.tex'' mtx-context | run 1: luatex --fmt="/var/lib/texmf/luatex-cache/context/f919750633122078d706dd10f1cfd39b/formats/cont-en" --lua="/var/lib/texmf/luatex-cache/context/f919750633122078d706dd10f1cfd39b/formats/cont-en.lui" --backend="pdf" "./mytest.tex" \stoptext This is LuaTeX, Version beta-0.70.2-2012070301 (TeX Live 2012/Debian) \write18 enabled. (mytest.tex ConTeXt ver: 2012.05.30 11:26 MKIV fmt: 2013.4.11 int: english/english system > cont-new.mkiv loaded (/usr/share/texmf/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) system > mytest.top loaded (mytest.top ) fonts > latin modern fonts are not preloaded languages > language en is active (/usr/share/texlive/texmf-dist/tex/generic/misc/null.tex){/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} fonts > preloading latin modern fonts (second stage) fonts > typescripts > unknown: library 'loc' {/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} fonts > virtual math > unable to resolve name mapsfromchar fonts > fallback modern rm 12pt is loaded ! Undefined control sequence. system > tex > error on line 3 in file mytest.tex: Undefined control sequence ... 1 \input null 2 \starttext 3 >> $\Vbar$ 4 \stoptext 5 <recently read> \Vbar l.3 $\Vbar $ backend > xmp > using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1 )</usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf> mkiv lua stats > used config file - selfautodir:/share/texmf/web2c/texmfcnf.lua mkiv lua stats > used cache path - readable: '/var/lib/texmf/luatex-cache/context/f919750633122078d706dd10f1cfd39b' (order 1) mkiv lua stats > used cache path - readable: '/home/sanjoy/.texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b' (order 2) mkiv lua stats > used cache path - writable: '/home/sanjoy/.texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b' mkiv lua stats > resource resolver - loadtime 0.074 seconds, 2 scans with scantime 0.002 seconds, 0 shared scans, 46 found files, scanned paths: /etc/texmf /home/sanjoy/.texmf-var mkiv lua stats > stored bytecode data - 303 modules, 65 tables, 368 chunks mkiv lua stats > cleaned up reserved nodes - 39 nodes, 9 lists of 438 mkiv lua stats > node memory usage - 2 glue, 2 penalty, 9 attribute, 29 glue_spec, 3 attribute_list mkiv lua stats > node list callback tasks - 6 unique task lists, 5 instances (re)created, 133 calls mkiv lua stats > used backend - pdf (backend for directly generating pdf output) mkiv lua stats > loaded patterns - en::2 mkiv lua stats > jobdata time - 0.000 seconds saving, 0.001 seconds loading mkiv lua stats > callbacks - 260 direct, 567 indirect, 827 total mkiv lua stats > randomizer - resumed with value 0.65443952551784 mkiv lua stats > lxml preparation time - 0.000 seconds, 0 nodes, 11 lpath calls, 0 cached calls mkiv lua stats > result saved in file - mytest.pdf mkiv lua stats > loaded fonts - 33 files: stmary10.afm eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm mkiv lua stats > fonts load time - 0.385 seconds mkiv lua stats > luatex banner - this is luatex, version beta-0.70.2-2012070301 (tex live 2012/debian) mkiv lua stats > control sequences - 33669 of 65536 + 100000 mkiv lua stats > current memory usage - 34 MB (ctx: 35 MB) mkiv lua stats > runtime - 1.011 seconds, 1 processed pages, 1 shipped pages, 0.989 pages/second mtx-context | fatal error: return code: 1 ConTeXt exited abnormally with code 1 at Sat May 18 12:54:54
_______________________________________________ bug-auctex mailing list bug-auctex@gnu.org https://lists.gnu.org/mailman/listinfo/bug-auctex