From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: bug: babel: Export of temporary buffers fails Date: Sat, 02 Oct 2010 11:21:36 -0600 Message-ID: <87mxqwik7z.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=37123 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P25ms-0007DY-4D for emacs-orgmode@gnu.org; Sat, 02 Oct 2010 13:22:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P25mH-0003H0-JN for emacs-orgmode@gnu.org; Sat, 02 Oct 2010 13:21:43 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:48748) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P25mH-0003GK-Bb for emacs-orgmode@gnu.org; Sat, 02 Oct 2010 13:21:41 -0400 Received: by pzk26 with SMTP id 26so2439337pzk.0 for ; Sat, 02 Oct 2010 10:21:40 -0700 (PDT) In-Reply-To: (Puneeth's message of "Sat, 2 Oct 2010 22:00:19 +0530") 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: Puneeth Cc: emacs-orgmode Hi Puneeth, I believe that export is only allowed from buffers visiting files, when I tried to reproduce your problem exporting from a buffer without a file name I get the following error message (error "Need a file name to be able to export") which is thrown by org-latex, org-docbook, or org-html on attempted export. Unless I'm missing something, it is not a problem that Babel expects org-current-export-file to have a value. Best -- Eric Puneeth writes: > Hello, > > Export of temporary buffers with babel src blocks fails. > > Line 118 of ob-exp.el has > > (set-buffer (get-file-buffer org-current-export-file)) > > But the value of org-current-exp-file is nil for a temporary buffer. > > The following commit brought in that change. > > commit efdf78172d9f7c0070c781d136a9b49a2a56fcc4 > Author: Eric Schulte > Date: Sat Sep 18 19:01:49 2010 -0600 > > ob-exp: resolving code block parameters in the original file on export > > * lisp/ob-exp.el (org-babel-exp-src-blocks): now switching back to the > original file before resolving code block parameters to ensure > headline and buffer wide parameters are taken into consideration > when only a narrowed portion of the file is exported > > > HTH, > > Puneeth > > _______________________________________________ > 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