After some research we determined this is a problem inherent to
lualatex. If you have a solution for this problem in LuaLaTeX please post it below and I will accept you answer.
When compiling a file with LaTeX (and others), if there is an error one has the option to edit the file at the line of the error (or near) by pressing e + Enter.
For example, if one has this file
\documentclass{article}
\begin{document}
\badcommand
\end{document}
I get this
...
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo)) (./main.aux)
! Undefined control sequence.
l.3 \badcommand
?
However, in my current configuration TeXLive 2015 (Fedora), nothing happens. I only get this message:
You want to edit file ./main.tex at line 81
297 words of node memory still in use:
3 hlist, 1 rule, 48 glue_spec, 1 write, 1 dir, 1 pdf_colorstack nodes
avail lists: 2:12,3:1,6:2,9:1
No pages of output.
Transcript written on document.log.
prompt $_
How can I configure the editor? in particular Gedit.
(I am suspecting it tries to open emacs which is not installed, but still I would like to use Gedit instead).
TEXEDITenvironment variable in your shell (e.g. in the appropriate one of .bashrc, .bash_profile, .cshrc, .zshrc etc). For example, I haveexport TEXEDIT="/usr/bin/gvim +%d %s"in .bash_profile. – Apr 19 '16 at 02:46vi. At least, that's what upstream's TeX does by default. I don't use Fedora's TL packages (even though I use Fedora on one machine), but I can't especially see why they'd change it toemacs. – cfr Apr 19 '16 at 12:07export TEXEDIT=...before running LaTeX. – alfC Apr 19 '16 at 18:15emacsbecause, contrary toemacs,viwas installed and LaTeX didn't call any program aftere. I think it is not working from any program. – alfC Apr 19 '16 at 18:17viin upstream's configuration - it is hard-coded intexmf-dist/web2c/texmf.cnfwhich sets the installation's default. (But you shouldn't edit this file or try to change the value here. Instead, you use the localtexmf.cnfwhich, for upstream, is at the root of the TeX installation, normally,/usr/local/texlive/YYYY/texmf.cnf. If it tries to useemacson your system, I guess Fedora change the default. – cfr Apr 19 '16 at 21:00color.cfg. If so, it will fail because you can't edit that file as you don't have permission. In reality, that is not where the error is, but the compiler is not always able to work this out. Try with a simple example with a simple syntax error such that TeX clearly knows that the error is in your.texfile. – cfr Apr 19 '16 at 21:10pdflatexand not withlualatex. It seems thatlualatexhas some additional security measure. – alfC Apr 20 '16 at 01:25web2c/texmfcnf.lua? Near the end, it says,-- In an edit cycle it can be handy to launch an editor. The -- preferred one can be set here.but then it gives no indication *how* to set it. The next line concerns the PDF viewer and the previous one the OTF font loader. – cfr Apr 24 '16 at 01:34["editor.method"]? (also 2) It would be interesting to know how luatex can benefit from know the PDF viewer,["pdfview.method"] = "okular",– alfC Apr 24 '16 at 20:01editor.methodseems a reasonable guess. See if you can copy the configuration file to your working directory and havekpsewhichrecognise it. If so, you can play around with it safely for testing purposes rather than messing around modifying the original. I'm also not sure if we're really meant to modify that file or not. It seems to say to, but won't it get overwritten on update? I expected an equivalent of thetexmf.cnfstrategy i.e. a separate file for local customisations. – cfr Apr 24 '16 at 20:16contextcallluatex... ? There is a custom version of the file in the same directory as the customtexmf.cnf. And ConTeXt reads it. But LuaTeX doesn't seem to read anything ... – cfr Apr 24 '16 at 22:05