[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-AUCTeX] TeX-evince-sync-view
From: |
David Kastrup |
Subject: |
Re: [Bug-AUCTeX] TeX-evince-sync-view |
Date: |
Thu, 05 Sep 2013 11:27:00 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Tassilo Horn <address@hidden> writes:
> David Kastrup <address@hidden> 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
Re: [Bug-AUCTeX] TeX-evince-sync-view, Thomas Arildsen, 2013/09/11
Re: [Bug-AUCTeX] TeX-evince-sync-view, Thomas Arildsen, 2013/09/17