From mboxrd@z Thu Jan 1 00:00:00 1970 From: Reuben Thomas Subject: Re: Bug: Setting system command org-file-apps does not allow other settings to refer to it [8.2.5h (release_8.2.5h-620-g7fd183 @ /home/rrt/.emacs.d/el-get/package/elpa/org-20140210/)] Date: Sun, 27 Apr 2014 14:54:13 +0100 Message-ID: References: <87d2hos6xc.fsf@sc3d.org> <87mwgpk214.fsf@bzg.ath.cx> <87mwgpgfvu.fsf@bzg.ath.cx> <87zjjeo6cf.fsf@bzg.ath.cx> <87fvl4m6ik.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1136b766b091a704f8068802 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WePX5-00012Z-Tl for emacs-orgmode@gnu.org; Sun, 27 Apr 2014 09:54:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WePX4-00084k-Ox for emacs-orgmode@gnu.org; Sun, 27 Apr 2014 09:54:15 -0400 Received: from mail-yh0-x232.google.com ([2607:f8b0:4002:c01::232]:40246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WePX4-00084b-IU for emacs-orgmode@gnu.org; Sun, 27 Apr 2014 09:54:14 -0400 Received: by mail-yh0-f50.google.com with SMTP id b6so2489628yha.9 for ; Sun, 27 Apr 2014 06:54:13 -0700 (PDT) In-Reply-To: <87fvl4m6ik.fsf@bzg.ath.cx> 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: Bastien Cc: emacs-orgmode@gnu.org --001a1136b766b091a704f8068802 Content-Type: text/plain; charset=UTF-8 On 23 April 2014 16:04, Bastien wrote: > Okay, see those two bits of `org-file-apps' docstring: > > `auto-mode' Matches files that are matched by any entry in > `auto-mode-alist', > so all files Emacs knows how to handle. Using this with > command `emacs' will open most files in Emacs. Beware that > this > will also open html files inside Emacs, unless you add > ("html" . default) to the list as well. > > So (auto-mode . emacs) says to open .pdf files in emacs... but > ("\\.pdf\\'" . default) says to open .pdf files using the "default" > application: > > `default' Use the default application for this file type, which is the > association for t in the list > > Since you have (t . "xdg-open %s"), xdg-open is used. > > Yep, it's all a bit tricky... > Thanks for explaining more. The reason I was (and remain!) still confused is that you said earlier that because "auto-mode" comes first, it is not overridden by changing the default value later. So the implication is that changing the default value does not override other values, but changing the system value does. Am I correct? -- http://rrt.sc3d.org --001a1136b766b091a704f8068802 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 23 April 2014 16:04, Bastien <bzg@gnu.org> wro= te:
Okay, see those two bits of `org-file-apps' docstring:

`auto-mode' =C2=A0 =C2=A0Matches files that are matched by any entry in= `auto-mode-alist',
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0so all files Emacs k= nows how to handle. =C2=A0Using this with
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0command `emacs' = will open most files in Emacs. =C2=A0Beware that this
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0will also open html = files inside Emacs, unless you add
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("html" . = default) to the list as well.

So (auto-mode . emacs) says to open .pdf files in emacs... but
("\\.pdf\\'" . default) says to open .pdf files using the &qu= ot;default"
application:

=C2=A0`default' =C2=A0 =C2=A0 Use the default application for this file= type, which is the
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0association for t in= the list

Since you have (t . "xdg-open %s"), xdg-open is used.

Yep, it's all a bit tricky...

Thank= s for explaining more. The reason I was (and remain!) still confused is tha= t you said earlier that because "auto-mode" comes first, it is no= t overridden by changing the default value later. So the implication is tha= t changing the default value does not override other values, but changing t= he system value does. Am I correct?

--
http://rrt.sc3d.org<= /a>
--001a1136b766b091a704f8068802--