Thomas Arildsen <[email protected]> writes:

Hi Thomas,

> It sounds like quite a project to try to sort out the problem with
> DBUS. I have no experience with it.

In your original report, you've said that TeX-evince-sync-view does not
work.  What exactly doesn't work?  Isn't there an evince window opened?

AUCTeX first does

(dbus-call-method
 :session "org.gnome.evince.Daemon"
 "/org/gnome/evince/Daemon"
 "org.gnome.evince.Daemon"
 "FindDocument"
 "file:///home/horn/some.pdf"  ;; replace with some existing PDF
 t) ;; C-x C-x here

Does that work, i.e., open an evince window showing some.pdf?

You could also monitor the dbus communication of the two evince
interfaces that auctex uses like so:

  $ dbus-monitor "interface=org.gnome.evince.Daemon" \
      "interface=org.gnome.evince.Window"

That's what I get when I execute a View command in auctex.

--8<---------------cut here---------------start------------->8---
method call sender=:1.66 -> dest=org.gnome.evince.Daemon serial=14 
path=/org/gnome/evince/Daemon; interface=org.gnome.evince.Daemon; 
member=FindDocument
   string "file:///home/horn/tmp/test/bar.dvi"
   boolean true
method call sender=:1.66 -> dest=:1.80 serial=15 
path=/org/gnome/evince/Window/0; interface=org.gnome.evince.Window; 
member=SyncView
   string "/home/horn/tmp/test/bar.tex"
   struct {
      int32 21
      int32 2
   }
   uint32 0
--8<---------------cut here---------------end--------------->8---

The first call FindDocument ensures that the edited document is opened
in evince, and the second call SyncView sets the view according to the
synctex information.

What do you get?

Bye,
Tassilo


_______________________________________________
bug-auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to