emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: no org-export-to-html-and-open since distribution switch
Date: Wed, 17 Jun 2015 17:02:25 -0400	[thread overview]
Message-ID: <87lhficala.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: 5581C59F.7040401@ehlu.name

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

  reply	other threads:[~2015-06-17 21:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-17 19:08 no org-export-to-html-and-open since distribution switch Sven Ehret
2015-06-17 21:02 ` Nick Dokos [this message]
     [not found] <mailman.72789.1434637432.903.emacs-orgmode@gnu.org>
2015-06-19  9:26 ` no org-export-to-html-and-open since distribution, switch Sven Ehret
  -- strict thread matches above, loose matches on Subject: below --
2015-06-17 13:54 no org-export-to-html-and-open since distribution switch Sven Ehret
2015-06-17 11:15 Sven Ehret
2015-06-17 11:07 Sven Ehret
2015-06-18 15:42 ` Rasmus
2015-06-19 18:35   ` Sven Ehret

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=87lhficala.fsf@alphaville.usersys.redhat.com \
    --to=ndokos@gmail.com \
    --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).