From mboxrd@z Thu Jan 1 00:00:00 1970 From: Puneeth Subject: bug: babel: Export of temporary buffers fails Date: Sat, 2 Oct 2010 22:00:19 +0530 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from [140.186.70.92] (port=44004 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P24yw-0007Ky-V7 for emacs-orgmode@gnu.org; Sat, 02 Oct 2010 12:30:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P24yv-0008Ln-O7 for emacs-orgmode@gnu.org; Sat, 02 Oct 2010 12:30:42 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:37293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P24yv-0008LJ-Jn for emacs-orgmode@gnu.org; Sat, 02 Oct 2010 12:30:41 -0400 Received: by wyb36 with SMTP id 36so4973957wyb.0 for ; Sat, 02 Oct 2010 09:30:40 -0700 (PDT) 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: emacs-orgmode 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