From: "Eric Schulte" <schulte.eric@gmail.com>
To: Puneeth <punchagan@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: bug: babel: Export of temporary buffers fails
Date: Sat, 02 Oct 2010 11:21:36 -0600 [thread overview]
Message-ID: <87mxqwik7z.fsf@gmail.com> (raw)
In-Reply-To: <AANLkTik5xFe-sQy9wuLEo89thM9xAzit-r1M7sv84=SY@mail.gmail.com> (Puneeth's message of "Sat, 2 Oct 2010 22:00:19 +0530")
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 <punchagan@gmail.com> 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 <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
>
> _______________________________________________
> 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
next prev parent reply other threads:[~2010-10-02 17:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-02 16:30 bug: babel: Export of temporary buffers fails Puneeth
2010-10-02 17:21 ` Eric Schulte [this message]
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=87mxqwik7z.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=punchagan@gmail.com \
/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).