From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: bug#14605: bug#14605: Problem with export an .org file to .pdf does not open pdf file Date: Mon, 02 Sep 2013 14:04:14 +0530 Message-ID: <8738pnlj09.fsf__14328.6793878817$1378111589$gmane$org@gmail.com> References: <51B9C912.4050100@redhat.com> <51C979DF.9080106@redhat.com> <520A312B.5080003@redhat.com> <6CD2860F-6518-4BC6-B431-507BB088B588@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGPZO-0000m4-Ig for emacs-orgmode@gnu.org; Mon, 02 Sep 2013 04:33:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGPZH-0007wY-8Q for emacs-orgmode@gnu.org; Mon, 02 Sep 2013 04:33:10 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <6CD2860F-6518-4BC6-B431-507BB088B588@gmail.com> (Carsten Dominik's message of "Mon, 2 Sep 2013 07:35:40 +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: Carsten Dominik Cc: Petr Hracek , 14605@debbugs.gnu.org Carsten Dominik 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