emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Reuben Thomas <rrt@sc3d.org>
To: Bastien <bzg@gnu.org>
Cc: emacs-orgmode@gnu.org
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: Mon, 17 Mar 2014 13:17:16 +0000	[thread overview]
Message-ID: <CAOnWdogj7W9+=xXALynQQqArDp77jchfnVS122XDEPYTFROsYA@mail.gmail.com> (raw)
In-Reply-To: <87mwgpgfvu.fsf@bzg.ath.cx>

[-- Attachment #1: Type: text/plain, Size: 1119 bytes --]

On 17 March 2014 12:37, Bastien <bzg@gnu.org> wrote:

> Reuben Thomas <rrt@sc3d.org> writes:
>
> > I don't know, because I don't know whether it's the behavior or
> > documentation that is wrong.
>
> If the behavior is wrong, what is wrong?
>
> If the documentation is wrong, what is wrong?
>

I shall assume it's a bug in the code.

0. The docstring for org-file-apps for the "system" command says:

                  This command is specified by the entry whose car is
`system'.
                  Most likely, the system-specific version of this variable
                  does define this command, but you can overrule/replace it
                  here.

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

2. Now I try opening a file type which uses the default command.

Expected result: xdg-open should be used.

Actual result: the file is opened in Emacs (it's a PDF file, xdg-open would
open it in evince).

If I explicitly customize the default command also to be "xdg-open", then I
get the expected result.

-- 
http://rrt.sc3d.org

[-- Attachment #2: Type: text/html, Size: 1872 bytes --]

  reply	other threads:[~2014-03-17 13:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-14 23:21 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/)] Reuben Thomas
2014-03-17  2:11 ` Bastien
2014-03-17 12:18   ` Reuben Thomas
2014-03-17 12:37     ` Bastien
2014-03-17 13:17       ` Reuben Thomas [this message]
2014-04-21 19:00         ` Bastien
2014-04-23 13:29           ` Reuben Thomas
2014-04-23 15:04             ` Bastien
2014-04-27 13:54               ` Reuben Thomas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOnWdogj7W9+=xXALynQQqArDp77jchfnVS122XDEPYTFROsYA@mail.gmail.com' \
    --to=rrt@sc3d.org \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).