[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Exporting to HTML opens resulting file

From: Carsten Dominik
Subject: Re: [Orgmode] Exporting to HTML opens resulting file
Date: Thu, 8 Apr 2010 17:44:04 +0200

Hi Gary,

maybe we need to settle some terminology first.

When Org-mode exports, is is actually producing the product in a buffer. So the buffer is there first. When it is complete, the buffer is written to a file, but stays in Emacs - so we now have a buffer visiting the file on the disk.

So if you are exporting in order to produce the file, you may not want to keep the buffer. That is a perfectly reasonable request. Of course, sometimes you might want to look at the buffer - in that case you'd want to keep it.

So there is no general solution for this.

The variable org-export-kill-product-buffer-when-displayed has the following effect: Some export commands do not only produce the export file, but immediately display it with an appropriate viewer. For example, `C-c C-e b' should open your browser. And `C-c C-e d' should produce a PDF file and open it with a PDF viewer (not sure if this did work in the quite old version of Org-mode you have). If immediate opening does not work, something funny if going on. This should work.


- Carsten

On Apr 8, 2010, at 4:22 PM, Gary . wrote:

On Thu, Apr 8, 2010 at 3:54 PM, Carsten Dominik wrote:

On Apr 8, 2010, at 3:34 PM, Xin Shi wrote:

I had a similar request before but never get solved. I support this

(setq org-export-kill-product-buffer-when-displayed t)

will do this when the exported file is shown immediately, so
the buffer will be removed during `C-c C-e b',


Err... what exactly does "browse immediately" mean? I am guessing it
uses the browse-url-browser-function to open the produced page in a
browser? In my case that points to Firefox, and indeed I can `C-c C-o'
on a link in a .org file and it opens nicely. Nothing browser-like
happens if I `C-c C-e b', however...

but not during `C-c C-e h'

I guess we could have a variable that always removes the buffer.....


Well, not for me. I mean, I *do* want to export and then look at the
result, hence I don't want the "product buffer" open as well. I just
wasn't aware of this connection between "browse immediately" and
killing the product buffer. It doesn't seem that
org-export-kill-product-buffer-when-displayed exists in the version I
have, however :-(

Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.

- Carsten

reply via email to

[Prev in Thread] Current Thread [Next in Thread]