emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sebastian Rose <sebastian_rose@gmx.de>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: bug: babel: Export of temporary buffers fails
Date: Sat, 02 Oct 2010 21:38:45 +0200	[thread overview]
Message-ID: <87bp7cbd16.fsf@gmx.de> (raw)
In-Reply-To: <87mxqwik7z.fsf@gmail.com> (Eric Schulte's message of "Sat, 02 Oct 2010 11:21:36 -0600")

"Eric Schulte" <schulte.eric@gmail.com> writes:
> 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


Usually an Org file NAME.org is exported to NAME.html, NAME.txt and so
forth.


You can still export to a temporary buffer (`A' instead of `a', `H'
instead of `h') ...


HTH


   Sebastian

  reply	other threads:[~2010-10-02 19:38 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
2010-10-02 19:38   ` Sebastian Rose [this message]
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=87bp7cbd16.fsf@gmx.de \
    --to=sebastian_rose@gmx.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@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).