From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: orgmode & pdf-tools Date: Mon, 25 Jul 2016 13:47:25 +0200 Message-ID: <87a8h6vt0y.fsf@saiph.selenimh> References: <1752382.rEMxcOGRGz@linux-k2bd.site> <1977566.qrrg7b00tQ@linux-k2bd.site> <20160724.200304.2127422935039262718.pabloscasas@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bReM8-0007bH-7U for emacs-orgmode@gnu.org; Mon, 25 Jul 2016 07:47:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bReM2-0002ZZ-O6 for emacs-orgmode@gnu.org; Mon, 25 Jul 2016 07:47:31 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:57076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bReM2-0002ZN-HF for emacs-orgmode@gnu.org; Mon, 25 Jul 2016 07:47:26 -0400 In-Reply-To: <20160724.200304.2127422935039262718.pabloscasas@gmail.com> (Pablo S. Casas's message of "Sun, 24 Jul 2016 20:03:04 +0200 (CEST)") 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: "Pablo S. Casas" Cc: AW , emacs-orgmode@gnu.org 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, -- Nicolas Goaziou