unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: 14605@debbugs.gnu.org
Subject: bug#14605: [O] bug#14605: Problem with export an .org file to .pdf does not open pdf file
Date: Mon, 02 Sep 2013 14:04:14 +0530	[thread overview]
Message-ID: <8738pnlj09.fsf@gmail.com> (raw)
In-Reply-To: <6CD2860F-6518-4BC6-B431-507BB088B588@gmail.com> (Carsten Dominik's message of "Mon, 2 Sep 2013 07:35:40 +0200")

Carsten Dominik <carsten.dominik@gmail.com> writes:

> They are basically the "open" commands for MacOS X and Windows, and
> mailcap for Unix/Linux.

The suggestion below is met with some approval in the Orgmode mailist
earlier.  

http://lists.gnu.org/archive/html/emacs-orgmode/2013-07/msg00407.html

Here I go.
----------------------------------------------------------------

Turn `org-file-apps-defaults-gnu' (which is now a defconst) in to
defcustom and make xdg-open the default (or make a drop down list with
gnome-open, kde-open for people who don't have xdg-utils insalled) .

    (defconst org-file-apps-defaults-gnu
      '((remote . emacs)
        (system . mailcap)
        (t . mailcap))
      "Default file applications on a UNIX or GNU/Linux system.
    See `org-file-apps'.")


    (custom-set-variables
     '(org-file-apps
       (quote
        ((auto-mode . emacs)
         ("\\.mm\\'" . default)
         ("\\.x?html?\\'" . default)
         ("\\.pdf\\'" . default))))
     '(org-file-apps-defaults-gnu
       (quote
        ((remote . emacs)
         (system . "xdg-open %s")
         (t . mailcap))) t))

----------------------------------------------------------------

Anyways, opening a file outside of Emacs is not specific to Org.  Other
applications can open facility, if available right within Emacs core.

For some discussion surrounging - `open-file' - see
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14110





  reply	other threads:[~2013-09-02  8:34 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-13 13:28 bug#14605: Problem with export an .org file to .pdf does not open pdf file Petr Hracek
2013-06-25 11:07 ` Petr Hracek
2013-08-13 13:14   ` Petr Hracek
2013-08-17 12:31     ` Bastien
2013-09-02  5:35     ` bug#14605: [O] " Carsten Dominik
2013-09-02  8:34       ` Jambunathan K [this message]
2013-09-02  8:44         ` Carsten Dominik
2013-09-02  9:40           ` Jambunathan K
2013-09-02  9:47           ` bug#14605: [O] bug#14605: " Suvayu Ali
2013-09-02 10:12             ` Jambunathan K
2013-09-03 13:35               ` bug#14605: [O] bug#14605: " Suvayu Ali
     [not found]           ` <20130902094701.GI2828@kuru.dyndns-at-home.com>
2013-09-02  9:55             ` Carsten Dominik
2013-09-02 10:08             ` Carsten Dominik
2013-09-02 10:20               ` Jambunathan K
2013-09-02 16:22               ` bug#14605: [O] bug#14605: " Torsten Wagner
2013-09-03  4:59               ` Jambunathan K

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=8738pnlj09.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=14605@debbugs.gnu.org \
    --cc=carsten.dominik@gmail.com \
    /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.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).