emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Puneeth <punchagan@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: bug: babel: Export of temporary buffers fails
Date: Sat, 2 Oct 2010 22:00:19 +0530	[thread overview]
Message-ID: <AANLkTik5xFe-sQy9wuLEo89thM9xAzit-r1M7sv84=SY@mail.gmail.com> (raw)

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 <schulte.eric@gmail.com>
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

             reply	other threads:[~2010-10-02 16:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-02 16:30 Puneeth [this message]
2010-10-02 17:21 ` bug: babel: Export of temporary buffers fails Eric Schulte
2010-10-02 19:38   ` Sebastian Rose
2010-10-03  3:37     ` Puneeth
2010-10-04 13:13       ` Eric Schulte
2010-10-04 13:59         ` Puneeth
2010-10-04 14:39           ` Eric Schulte
2010-10-04 15:16             ` Puneeth
2010-10-04 17:08             ` Hsiu-Khuern Tang
2010-10-05 17:56               ` Eric Schulte

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='AANLkTik5xFe-sQy9wuLEo89thM9xAzit-r1M7sv84=SY@mail.gmail.com' \
    --to=punchagan@gmail.com \
    --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).