From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: bug#14605: bug#14605: Problem with export an .org file to .pdf does not open pdf file Date: Mon, 2 Sep 2013 10:44:39 +0200 Message-ID: <81237114-C902-40D8-95F9-70AA2055C4D3__40724.0146225833$1378111560$gmane$org@gmail.com> References: <51B9C912.4050100@redhat.com> <51C979DF.9080106@redhat.com> <520A312B.5080003@redhat.com> <6CD2860F-6518-4BC6-B431-507BB088B588@gmail.com> <8738pnlj09.fsf@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45066) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGPkz-0004N2-N6 for emacs-orgmode@gnu.org; Mon, 02 Sep 2013 04:45:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGPkt-0003RN-RX for emacs-orgmode@gnu.org; Mon, 02 Sep 2013 04:45:09 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <8738pnlj09.fsf@gmail.com> 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: Jambunathan K Cc: Petr Hracek , 14605@debbugs.gnu.org On Sep 2, 2013, at 10:34 AM, Jambunathan K = wrote: > Carsten Dominik writes: >=20 >> They are basically the "open" commands for MacOS X and Windows, and >> mailcap for Unix/Linux. >=20 > The suggestion below is met with some approval in the Orgmode mailist > earlier. =20 >=20 > http://lists.gnu.org/archive/html/emacs-orgmode/2013-07/msg00407.html >=20 > Here I go. > ---------------------------------------------------------------- >=20 > 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) . >=20 > (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'.") >=20 >=20 > (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)) >=20 I have not followed the discussion earlier. The problem I see is that I = do not know how widely available these commands are on Linux. Maybe we = can built the default value using executable-find or something like = this? - Carsten > ---------------------------------------------------------------- >=20 > Anyways, opening a file outside of Emacs is not specific to Org. = Other > applications can open facility, if available right within Emacs core. >=20 > For some discussion surrounging - `open-file' - see > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D14110