Tassilo Horn <[email protected]> writes: > David Kastrup <[email protected]> writes: > >>>>> 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? >>>> This part works, much to my surprise. I pasted the above into the >>>> scratch buffer, replaced by an existing PDF and ran M-x >>>> eval-buffer. The PDF opened in a new evince window. >>> >>> Uh, that's strange. That's exactly what TeX-evince-sync-view does. >> >> Perhaps it is not allowed to do that. > > How is lisp code run with eval-buffer different from lisp code called by > a function with respect to permissions? I mean, how can the > > (dbus-call-method ...) > > above work, but calling > > (defun TeX-evince-sync-view () > (dbus-call-method ...)) > > doesn't.
Ok, maybe I did not read this through well enough. Here is one respect in which both may differ: they may be run from different directories. -- David Kastrup _______________________________________________ bug-auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-auctex
