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: Wed, 23 Apr 2014 14:29:44 +0100 Message-ID: References: <87d2hos6xc.fsf@sc3d.org> <87mwgpk214.fsf@bzg.ath.cx> <87mwgpgfvu.fsf@bzg.ath.cx> <87zjjeo6cf.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e014940eac105de04f7b5b98b Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcxFI-0001Na-4m for emacs-orgmode@gnu.org; Wed, 23 Apr 2014 09:29:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WcxFB-0000Md-Vi for emacs-orgmode@gnu.org; Wed, 23 Apr 2014 09:29:52 -0400 Received: from mail-la0-x22e.google.com ([2a00:1450:4010:c03::22e]:60659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcxFB-0000MJ-JH for emacs-orgmode@gnu.org; Wed, 23 Apr 2014 09:29:45 -0400 Received: by mail-la0-f46.google.com with SMTP id hr17so766787lab.5 for ; Wed, 23 Apr 2014 06:29:44 -0700 (PDT) In-Reply-To: <87zjjeo6cf.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 --089e014940eac105de04f7b5b98b Content-Type: text/plain; charset=UTF-8 On 21 April 2014 20:00, Bastien wrote: > Hi Reuben, > > Reuben Thomas writes: > > > 1. I customize org-file-apps's system command to be "xdg-open %s", > > then customize the default command to be the system command. > > Please share the value of `org-file-apps' (C-h v org-file-apps RET). > Value: ((auto-mode . emacs) ("\\.mm\\'" . default) ("\\.x?html?\\'" . default) ("\\.pdf\\'" . default) (t . "xdg-open %s") (system . "xdg-open %s")) > What I've found is that, since .pdf documents can be opened in Emacs > and since org-file-apps contains (auto-mode . emacs) as its first > element, then changing the system's value to xdg-open after that will > fail because (auto-mode . emacs) is applied first. > That's interesting, but I'm no less confused. With the value above, PDF files *are* opened with xdg-open. > Sure, the docstring needs a bit of simplification, thought. > That would be a good start: if I can understand what is supposed to happen, I have some chance to tell whether the actual behaviour is correct or not! Thanks for your continued attention to this issue. -- http://rrt.sc3d.org --089e014940eac105de04f7b5b98b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 2= 1 April 2014 20:00, Bastien <bzg@gnu.org> wrote:
Hi Reuben,

Reuben Thomas <rrt@sc3= d.org> writes:

> 1. I customize org-file-apps's system command to be "xdg-open= %s",
> then customize the default command to be the system command.

Please share the value of `org-file-apps' (C-h v org-file-apps RE= T).

Value: ((auto-mode . emacs)
=C2=A0("\\= .mm\\'" . default)
=C2=A0("\\.x?html?\\'" . defau= lt)
=C2=A0("\\.pdf\\'" . default)
=C2=A0(t . "xdg-open %s= ")
=C2=A0(system . "xdg-open %s"))
=C2=A0
What I've found is that, since .pdf documents can be opened in Emacs and since org-file-apps contains (auto-mode . emacs) as its first
element, then changing the system's value to xdg-open after that will fail because (auto-mode . emacs) is applied first.
That's interesting, but I'm no less confused. With the = value above, PDF files *are* opened with xdg-open.
=C2=A0
Sure, the docstring needs a bit of simplification, thought.

That would be a good start: if I can understand what i= s supposed to happen, I have some chance to tell whether the actual behavio= ur is correct or not!

Thanks for your continued attention to this issue.

--
http://rrt.sc3d.org
--089e014940eac105de04f7b5b98b--