From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Exporting to HTML opens resulting file Date: Thu, 8 Apr 2010 17:44:04 +0200 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nzw65-0004dj-NL for emacs-orgmode@gnu.org; Thu, 08 Apr 2010 14:04:57 -0400 Received: from [140.186.70.92] (port=34776 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nzw60-0004Yi-On for emacs-orgmode@gnu.org; Thu, 08 Apr 2010 14:04:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nzw5y-00057r-2y for emacs-orgmode@gnu.org; Thu, 08 Apr 2010 14:04:52 -0400 Received: from mail-ew0-f214.google.com ([209.85.219.214]:41295) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nzw5x-00057k-U7 for emacs-orgmode@gnu.org; Thu, 08 Apr 2010 14:04:50 -0400 Received: by ewy6 with SMTP id 6so786496ewy.32 for ; Thu, 08 Apr 2010 11:04:49 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Gary ." Cc: emacs-orgmode@gnu.org 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