From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Proper use of 'org-file-apps' Date: Thu, 27 Jun 2013 01:52:49 -0400 Message-ID: <87hagk3xse.fsf@gmail.com> References: <20130627042713.GA688@smoon> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Us58h-0001DL-NM for emacs-orgmode@gnu.org; Thu, 27 Jun 2013 01:53:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Us58g-0007Jj-NQ for emacs-orgmode@gnu.org; Thu, 27 Jun 2013 01:53:03 -0400 Received: from plane.gmane.org ([80.91.229.3]:47133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Us58g-0007JZ-G7 for emacs-orgmode@gnu.org; Thu, 27 Jun 2013 01:53:02 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Us58f-0007N0-HV for emacs-orgmode@gnu.org; Thu, 27 Jun 2013 07:53:01 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Jun 2013 07:53:01 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Jun 2013 07:53:01 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Vladimir Lomov writes: > #+BEGIN_SRC emacs-lisp :tangle org-apps-c.el > (add-to-list 'load-path "/usr/share/emacs/site-lisp/org") > (require 'org) > (setq org-file-apps > '( ("\\.pdf::\\(\\d+\\)\\'" . "run-me --page %1 %s") > ("\\.pdf\\'" . "run-me %s") > ) > ) > #+END_SRC > \d is Perl regexp syntax for matching a digit, but (afaik) not emacs syntax. Try > '( ("\\.pdf::\\([0-9]+\\)\\'" . "run-me --page %1 %s") or > '( ("\\.pdf::\\([[:digit:]]+\\)\\'" . "run-me --page %1 %s") instead. -- Nick