From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: protocol for PDFs? Date: Mon, 04 Jan 2010 17:09:17 +0100 Message-ID: <87aawtam36.fsf@gmx.de> References: <86oclclxlt.fsf@mn.cs.uvic.ca> <4B3F636B.20903@jboecker.de> <86bphbhbmh.fsf@mn.cs.uvic.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NRpbU-0003uH-5J for emacs-orgmode@gnu.org; Mon, 04 Jan 2010 11:16:24 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NRpbP-0003tU-Hq for emacs-orgmode@gnu.org; Mon, 04 Jan 2010 11:16:23 -0500 Received: from [199.232.76.173] (port=60028 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NRpbP-0003tH-4R for emacs-orgmode@gnu.org; Mon, 04 Jan 2010 11:16:19 -0500 Received: from mail.gmx.net ([213.165.64.20]:57245) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NRpbO-00068A-Df for emacs-orgmode@gnu.org; Mon, 04 Jan 2010 11:16:19 -0500 In-Reply-To: <86bphbhbmh.fsf@mn.cs.uvic.ca> (D. M. German's message of "Sat, 02 Jan 2010 23:48:54 -0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: dmg@uvic.ca Cc: emacs-orgmode@gnu.org D M German writes: > Jan> It allows you to link to any document format which doc-view-mode > Jan> supports, which includes PDF files. The syntax is: > > Jan> docview::: > > Jan> Example: > > Jan> [[docview:/home/jan/some-file.pdf::7][Page 7]] > > I have started modifying evince. I got to the point in evince that I can > now call emacs-client. The problem is, what do I pass to it? > > Will the call to emacsclient be: > > emascclient ort-protocol://remember://docview:/home/jan/some-file.pdf::7/TitleOfPDF/Selection Hi Daniel, you will have to call emascclient ort-protocol://docview:/home/jan/some-file.pdf::7/TitleOfPDF/Selection and define a custom handler to make this work. As docview is in the core, you could add that handler directly in lisp/org-protocol.el if everyone is OK with that. I'm not online very often at the moment. I probably won't read your answers before I tried that myself (just updated Org-mode here). I'll be back on thursday :-/ See: http://www.youtube.com/profile?user=Nie0815#p/u/1/h7Z2PiAcgh8 and http://orgmode.org/worg/org-tutorials/org-protocol-custom-handler.php for more on custom handlers. Best wishes Sebastian