emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: "Gary ." <emacs-orgmode@garydjones.name>
Cc: emacs-orgmode@gnu.org
Subject: Re: Exporting to HTML opens resulting file
Date: Thu, 8 Apr 2010 17:44:04 +0200	[thread overview]
Message-ID: <A94237B7-3319-4C86-A420-B7C572B473A8@gmail.com> (raw)
In-Reply-To: <q2z5bb689681004080722o55e71b53k6060c68239b1e7c3@mail.gmail.com>

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.

HTH

- 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
>>> request.
>>
>> (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',
>
> Aha!
>
> 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.....
>
> *choke*
>
> 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.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

  reply	other threads:[~2010-04-08 18:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-08  8:11 Exporting to HTML opens resulting file Gary .
2010-04-08 13:34 ` Xin Shi
2010-04-08 13:54   ` Carsten Dominik
2010-04-08 14:22     ` Gary .
2010-04-08 15:44       ` Carsten Dominik [this message]
2010-04-09  9:49         ` Gary .
2010-04-09 12:23           ` Carsten Dominik
2010-04-08 18:23     ` Xin Shi
2010-04-08 19:19       ` Livin Stephen Sharma
2010-04-08 20:55       ` Carsten Dominik

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=A94237B7-3319-4C86-A420-B7C572B473A8@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@garydjones.name \
    --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).