auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] View with Evince and I/O Correlation hangs on prompt


From: Tassilo Horn
Subject: Re: [AUCTeX] View with Evince and I/O Correlation hangs on prompt
Date: Mon, 24 Jan 2011 22:24:20 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

Ralf Angeli <address@hidden> writes:

Hi Ralf,

> Sorry, but I still cannot reproduce the problem.  I used the following
> file as a minimal example together with `emacs -Q -l auctex':
>
> \documentclass{article}
> \begin{document}
> foo
> \end{document}
>
> %%% Local Variables: 
> %%% mode: latex
> %%% TeX-master: t
> %%% TeX-PDF-mode: t
> %%% TeX-source-correlate-mode: t
> %%% TeX-engine: xetex
> %%% TeX-view-program-selection: ((output-html "xdg-open") (output-pdf 
> "Evince") (output-dvi "Evince")))
> %%% End: 

Hm, with "normal" emacs that hangs for me, too.  But with emacs -Q and
then loading the auctex el files in the elpa directory using dired
doesn't have that issue.  There, I get the evince command fully expanded
with no hang.

>> Here's the backtrace:
>>
>> Debugger entered--Lisp error: (quit)
>>   call-process("synctex" nil (#<buffer  *string-output*> nil) nil "view" 
>> "-i" "18:0:transformation-diss.tex" "-o" "transformation-diss.pdf")
>
> Looks like the call to synctex is hanging.  What happens if you call
> synctex in the directory directly from a terminal with the following
> command line?
>
> syntex view -i 18:0:transformation-diss.tex -o transformation-diss.pdf

It works just fine...

--8<---------------cut here---------------start------------->8---
% time synctex view -i 18:0:transformation-diss.tex -o transformation-diss.pdf
This is SyncTeX command line utility, version 1.2
synctex view -i 18:0:transformation-diss.tex -o transformation-diss.pdf
0.09s user 0.01s system 98% cpu 0.107 total
--8<---------------cut here---------------end--------------->8---

Now I edebugged `TeX-synctex-output-page', and I tell you what: it does
not hang, but it is called over and over again!  That's because in
`TeX-command-expand', the loop condition in

  (while (setq pos (string-match pat command pos)) ...

always succeeds.  The variable values are:

  pat = "\\(?: 
\"\\\\\\|\"\\|%\\(?:(\\(?:\\(?:PDF\\(?:out\\)?\\|execopts\\|latex\\|mode\\|o\\(?:\\?\\|utpage\\)\\|tex\\))\\)\\|cS\\|dS\\|vv\\|[%'SV`bdfl-tv]\\)\\)"
  command = "evince -p %(outpage) %o"
  pos = 10
  (string-match pat command 10) ==> again 10

Bye,
Tassilo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]