auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] forward / backward with evince


From: Tassilo Horn
Subject: Re: [AUCTeX] forward / backward with evince
Date: Tue, 10 Apr 2012 20:25:57 +0200
User-agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.95 (gnu/linux)

Mandar Mitra <address@hidden> writes:

Hi Mandar,

>> Could you check the correct signature for this version of evince?  I
>> use the d-feet tool for that.
>
> Thanks! That's a useful thing to know. 

Yes, that's a pretty handy tool.  I only wish it could also show the
documentation for the dbus interfaces.

> The version of evince on Ubuntu 10.04 doesn't support the FindDocument
> method after all.

Ah, ok.  Then the forward search via DBUS will be available only for
evince versions that have that DBUS method.  (See the explanation
below.)

> Meanwhile, I tried the CVS version on my work machine (Lubuntu 11.10).
> The default "View command" is TeX-evince-sync-view, so I'm assuming
> the CVS version is actually getting used.

Yep.

> But I keep getting the following sort of error on typing C-c C-v:
>
> TeX-evince-sync-view: Arithmetic range error: "round", 1334070937.742052

Ok, I see.  I guess, you are using a 32 bit system.  On 32 bit systems,
the biggest emacs integer is less than what's needed for a POSIX
timestamp.  I'll check how to work around that limitation.

> But ~/bin/evince_synctex/evince_forward_search and the corresponding
> backward search from the solution provided on the Ubuntuforums page
> that I mentioned earlier does work.

Hm, strange.  With my limited python knowledge, it looks to me that the
evince Daemon service with its FindDocument is required also by this
solution.  They use it to find the evince window corresponding to the
document.  If that fails, they print the exception backtrace but still
call the SyncView on the window variable that's initialized after the
call to FindDocument, which means, in case of an error for FindDocument,
it cannot be initialized...

Maybe I have an outdated version of the scripts?  I downloaded the
tar.gz in the initial posting of the forum thread...

Anyway: I think, one could go without the FindDocument method and have
it still work if there's only one evince window open (or the correct one
is the first one opened, or maybe the last one focused, or something
like that).  But I consider that less usable than the command line
version which works reliably and just misses the "red square" and
"center current paragraph" features.  So I'll rely on that method, and
thus forward search via dbus is only available for evince 3.0.0+ (?),
which will eventually be available on all distros.

> Is there anything I can do to help track this error down?

No, you've already helped me a lot.  I'll ping you again for testing as
soon as I've found some solution to the two problems.

Bye,
Tassilo



reply via email to

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