From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sven Ehret Subject: Re: no org-export-to-html-and-open since distribution, switch Date: Fri, 19 Jun 2015 11:26:13 +0200 Message-ID: <5583E035.4060704@miezekator.de> References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------030405070807050708010609" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32771) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5sZ4-0005aP-H7 for emacs-orgmode@gnu.org; Fri, 19 Jun 2015 05:26:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5sYz-0003Zl-Dk for emacs-orgmode@gnu.org; Fri, 19 Jun 2015 05:26:22 -0400 Received: from www.miezekator.de ([84.38.66.137]:54720 helo=miezekator.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5sYz-0003Ym-3p for emacs-orgmode@gnu.org; Fri, 19 Jun 2015 05:26:17 -0400 Received: from [194.139.48.120] (hafw.comdok.de [217.76.110.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by miezekator.de (Postfix) with ESMTPSA id 91C512E101 for ; Fri, 19 Jun 2015 11:26:13 +0200 (CEST) In-Reply-To: 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: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------030405070807050708010609 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Hi Nick, you deserve a medal. As I did experiment with xdg-open (never needed to fiddle with that before), adding a line to my mailcap file (also never was manually edited before. Perhaps once, for mc) and restarting emacs made the browser open again. A thousand thanks to you, not only for solving my immediate problem, but also for your concise explanations. Cheers! Sven. Message: 11 Date: Wed, 17 Jun 2015 17:02:25 -0400 From: Nick Dokos To: emacs-orgmode@gnu.org Subject: Re: [O] no org-export-to-html-and-open since distribution switch Message-ID: <87lhficala.fsf@alphaville.usersys.redhat.com> Content-Type: text/plain; charset=utf-8 Sven Ehret writes: > Hi List, > > since I have switched distributions from Mint to Arch, I have lost one > of my most-loved Org features: Export to HTML and open. > > ... > > When I command M-x org-export-to-html-and-open, it says [No match]. > That function might have existed in org 7.9.x and earlier, but the exporter underwent major restructuring in the org 8.0 release and a lot of things were changed/renamed. The current version does this for C-c C-e h o: (org-open-file (org-html-export-to-html )) org-html-export-to-html writes an HTML file and org-open-file opens it. See the doc string for the latter: C-h f org-open-file RET You might have to customize org-file-apps to override the default for the HTML file type (although see below first). For me, the default is "mailcap" (determined through the system specific variable org-file-apps-defaults-gnu - the default is the "t" entry), so it uses the entry in ~/.mailcap or /etc/mailcap (if it exists). Mine says: text/html; /usr/bin/google-chrome %s so it opens it in chrome. The problem here is that there are too many cooks in the kitchen. I prefer to leave things at default as far as org is concerned and use mailcap (which is used by other applications as well). Other people prefer to hardwire things into org-file-apps which is fine for org but of course it is not used by any other applications. Other people prefer to route everything through their desktop environment's Open function (e.g xdg-open for Gnome) which uses its own routing mechanism (generally different from mailcap). I suggest you pick *one* method and stick with it through thick and thin: ignore everything else. Using more than one leads to madness. The path of least resistance is probably customizing org-file-apps. > The symptoms are very much like described in > http://emacs.stackexchange.com/questions/2387/browser-not-opening-when-exporting-html-from-org-mode > , but unfortunately there is no documented solution. > > My org version reports as ?Org-mode version 8.2.10 > (8.2.10-41-g42228a-elpaplus @ > /home/ehret/.emacs.d/elpa/org-plus-contrib-20150615/)?. > > I tried moving the elpa installation out of the way and installing a > distribution package, aur/emacs-org-mode, but the result is the same. > > Emacs will likely always feel alien to me, but my love to org mode is > bitter sweeeet. > > Any help or hints are greatly appreciated! > > Best, Sven. HTH, Nick --------------030405070807050708010609 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 7bit
Hi Nick, you deserve a medal. As I did experiment with xdg-open (never needed to fiddle with that before), adding a line to my mailcap file (also never was manually edited before. Perhaps once, for mc) and restarting emacs made the browser open again. A thousand thanks to you, not only for solving my immediate problem, but also for your concise explanations. Cheers! Sven. Message: 11 Date: Wed, 17 Jun 2015 17:02:25 -0400 From: Nick Dokos <ndokos@gmail.com> To: emacs-orgmode@gnu.org Subject: Re: [O] no org-export-to-html-and-open since distribution switch Message-ID: <87lhficala.fsf@alphaville.usersys.redhat.com> Content-Type: text/plain; charset=utf-8 Sven Ehret <sven@ehlu.name> writes:
Hi List,

since I have switched distributions from Mint to Arch, I have lost one
of my most-loved Org features: Export to HTML and open.

...

When I command M-x org-export-to-html-and-open, it says [No match].

That function might have existed in org 7.9.x and earlier, but the exporter
underwent major restructuring in the org 8.0 release and a lot of things
were changed/renamed. The current version does this for C-c C-e h o:

(org-open-file (org-html-export-to-html <args>))

org-html-export-to-html writes an HTML file and org-open-file opens it.
See the doc string for the latter: C-h f org-open-file RET

You might have to customize org-file-apps to override the default for
the HTML file type (although see below first). For me, the default is
"mailcap" (determined through the system specific variable
org-file-apps-defaults-gnu - the default is the "t" entry), so it uses
the entry in ~/.mailcap or /etc/mailcap (if it exists). Mine says:

text/html; /usr/bin/google-chrome %s

so it opens it in chrome.

The problem here is that there are too many cooks in the kitchen. I
prefer to leave things at default as far as org is concerned and use
mailcap (which is used by other applications as well). Other people
prefer to hardwire things into org-file-apps which is fine for org but
of course it is not used by any other applications. Other people prefer
to route everything through their desktop environment's Open function
(e.g xdg-open for Gnome) which uses its own routing mechanism (generally
different from mailcap).

I suggest you pick *one* method and stick with it through thick and
thin: ignore everything else. Using more than one leads to madness.
The path of least resistance is probably customizing org-file-apps.

The symptoms are very much like described in
http://emacs.stackexchange.com/questions/2387/browser-not-opening-when-exporting-html-from-org-mode
, but unfortunately there is no documented solution.

My org version reports as ?Org-mode version 8.2.10
(8.2.10-41-g42228a-elpaplus @
/home/ehret/.emacs.d/elpa/org-plus-contrib-20150615/)?.

I tried moving the elpa installation out of the way and installing a
distribution package, aur/emacs-org-mode, but the result is the same.

Emacs will likely always feel alien to me, but my love to org mode is
bitter sweeeet.

Any help or hints are greatly appreciated!

Best, Sven.
HTH,
Nick
--------------030405070807050708010609--