[Top][All Lists]

[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: Ralf Angeli
Subject: Re: [AUCTeX] View with Evince and I/O Correlation hangs on prompt
Date: Tue, 25 Jan 2011 22:06:59 +0100

* Tassilo Horn (2011-01-24) writes:

> Ralf Angeli <address@hidden> writes:
>> 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

Maybe `TeX-synctex-output-page' does not find the page number in the
output of synctex and so it returns nil.  Then %(outpage) will never be
replaced.  I've fixed this in the development version of AUCTeX last
October.  So if you often have trouble with this, you might want to
start using a checkout from CVS.


reply via email to

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