From mboxrd@z Thu Jan 1 00:00:00 1970 From: AW Subject: Re: orgmode & pdf-tools Date: Tue, 16 Aug 2016 13:19:08 +0200 Message-ID: <6552002.O9kBNmLeUn@linux-k2bd.site> References: <1752382.rEMxcOGRGz@linux-k2bd.site> <20160724.200304.2127422935039262718.pabloscasas@gmail.com> <87a8h6vt0y.fsf@saiph.selenimh> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZcP1-0001hH-F4 for emacs-orgmode@gnu.org; Tue, 16 Aug 2016 07:19:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZcOx-0002HR-88 for emacs-orgmode@gnu.org; Tue, 16 Aug 2016 07:19:26 -0400 Received: from mailout11.t-online.de ([194.25.134.85]:39030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZcOx-0002HA-1l for emacs-orgmode@gnu.org; Tue, 16 Aug 2016 07:19:23 -0400 In-Reply-To: <87a8h6vt0y.fsf@saiph.selenimh> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Cc: "Pablo S. Casas" , Nicolas Goaziou Am Montag, 25. Juli 2016, 13:47:25 CEST schrieb Nicolas Goaziou: > Hello, > > Pablo S. Casas writes: > > After edebugging org-open-file I found a possible solution. The > > > > documentation string for org-file-apps should be modified for the sexp > > case to use the link variable instead of file. > > > > #+BEGIN_SRC elisp > > (add-to-list 'org-file-apps '("\\.pdf\\'" . (org-pdfview-open link))) > > (add-to-list 'org-file-apps '("\\.pdf::\\(\\d+\\)\\'" . (org-pdfview-open > > link))) #+END_SRC > > I'm not sure about what the initial problem is, but there is no more > "sexp" case in `org-file-apps' in development version. You can use > a function instead. > > > Regards, @ Pablo, thank you, that solved it! Great! @ all: My initial setup was: (eval-after-load 'org '(require 'org-pdfview)) (delete '("\\.pdf\\'" . default) org-file-apps) (add-to-list 'org-file-apps '("\\.pdf\\'" . org-pdfview-open)) (add-to-list 'org-file-apps '("\\.pdf::\\([[:digit:]]+\\)\\'" . org-pdfview- open)) Now and working: (eval-after-load 'org '(require 'org-pdfview)) (delete '("\\.pdf\\'" . default) org-file-apps) (add-to-list 'org-file-apps '("\\.pdf\\'" . (org-pdfview-open link))) (add-to-list 'org-file-apps '("\\.pdf::\\(\\d+\\)\\'" . (org-pdfview-open link))) So the way to include org-pdfview-open did not work with openSuse and Emacs 24.5 If somebody _please_ could swap the "sexp" in org-file-apps with whatever function, as Nicolas mentioned? It really is helpful to open a lengthy PDF at the right page... And sorry for answering so late, I missed the email. Regards, Alexander