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 22:14:58 -0400 Message-ID: <87sj03htgd.fsf@gmail.com> References: <20130627042713.GA688@smoon> <87hagk3xse.fsf@gmail.com> <20130627065829.GB688@smoon> <8761wzk79m.fsf@gmail.com> <20130627235612.GI688@smoon> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsODQ-00026o-6R for emacs-orgmode@gnu.org; Thu, 27 Jun 2013 22:15:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsODP-0002Tu-1u for emacs-orgmode@gnu.org; Thu, 27 Jun 2013 22:15:12 -0400 Received: from plane.gmane.org ([80.91.229.3]:36239) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsODO-0002SR-RL for emacs-orgmode@gnu.org; Thu, 27 Jun 2013 22:15:10 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UsODM-00024F-Pr for emacs-orgmode@gnu.org; Fri, 28 Jun 2013 04:15:08 +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 ; Fri, 28 Jun 2013 04:15:08 +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 ; Fri, 28 Jun 2013 04:15:08 +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: > Something like that? The only question I had was whether there should be a \\' at the end of the xhtml line. I'm not sure how much real difference it makes, but I wonder if its absence is going to trip up somebody: "Why do the other two have a \\' but this one doesn't?" But I'll let you decide whether it should be present or not. It's already an improvement as it stands. I did apply the patch btw and checked that the docstring is as it should: it's good to go (with the above caveat). > > From 7840435bd76b38ab536108dfc105fdc53a6aa80d Mon Sep 17 00:00:00 2001 > From: Vladimir Lomov > Date: Fri, 28 Jun 2013 08:42:15 +0900 > Subject: [PATCH] Fix docstring for `org-file-apps' > > * lisp/org.el: `org-file-apps' docstring: doubled backslashes (would > give usable output when run 'C-h v org-file-apps') and use correct > regexp to match digits. > > TINYCHANGE > --- > lisp/org.el | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/lisp/org.el b/lisp/org.el > index d0dffc7..5e56231 100644 > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -1940,8 +1940,8 @@ file identifier are > filename matches the regexp. If you want to > use groups here, use shy groups. > > - Example: (\"\\.x?html\\'\" . \"firefox %s\") > - (\"\\(?:xhtml\\|html\\)\" . \"firefox %s\") > + Example: (\"\\\\.x?html\\\\'\" . \"firefox %s\") > + (\"\\\\(?:xhtml\\\\|html\\\\)\" . \"firefox %s\") > to open *.html and *.xhtml with firefox. > > - Regular expression which contains (non-shy) groups: > @@ -1956,7 +1956,7 @@ file identifier are > In a custom lisp form, you can access the group matches with > (match-string n link). > > - Example: (\"\\.pdf::\\(\\d+\\)\\'\" . \"evince -p %1 %s\") > + Example: (\"\\\\.pdf::\\\\([[:digit:]]+\\\\)\\\\'\" . \"evince -p %1 %s\") > to open [[file:document.pdf::5]] with evince at page 5. > > `directory' Matches a directory -- Nick