[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: Two questions about using a =#+begin_src emacs-lisp= block
From: |
Eric Schulte |
Subject: |
[Orgmode] Re: Two questions about using a =#+begin_src emacs-lisp= block |
Date: |
Mon, 21 Feb 2011 15:34:42 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
[...]
>>
>> This is due to the fact that during export Org-mode copies the entire
>> buffer contents into a new export buffer (which is not associated with
>> any file, hence `buffer-file-name' returning nothing). This is done so
>> that the exporter can operate destructively on the file contents without
>> affecting the original buffer.
>
> Ideally this should be an implementation detail that is completely
> hidden from the user. So I'd say that the fact that execution on export
> does not behave like interactive execution is a bug. Should we consider
> fixing this?
>
I'd push back on considering this a bug.
Babel currently makes no guarantees about the location in which
evaluation takes place (other than the :dir header argument), and I
would consider it an implementation detail that evaluation of emacs-lisp
does sometimes take place inside the Org-mode buffer (this is not true,
nor could it be for any other language). By contrast Babel *does*
guarantee that header arguments are resolved in the original Org-mode
buffer, a guarantee that we explicitly maintain during export despite
the Org-mode buffer shuffling.
Best -- Eric
- Re: [Orgmode] Two questions about using a =#+begin_src emacs-lisp= block, (continued)
- Re: [Orgmode] Two questions about using a =#+begin_src emacs-lisp= block, Eric Schulte, 2011/02/21
- Re: [Orgmode] Two questions about using a =#+begin_src emacs-lisp= block, Chris Malone, 2011/02/21
- Re: [Orgmode] Two questions about using a =#+begin_src emacs-lisp= block, Eric Schulte, 2011/02/21
- Re: [Orgmode] Two questions about using a =#+begin_src emacs-lisp= block, Chris Malone, 2011/02/22
- Re: [Orgmode] Two questions about using a =#+begin_src emacs-lisp= block, Eric Schulte, 2011/02/22
- Re: [Orgmode] Two questions about using a =#+begin_src emacs-lisp= block, Chris Malone, 2011/02/22
- Re: [Orgmode] Two questions about using a =#+begin_src emacs-lisp= block, Eric Schulte, 2011/02/22
- Re: Re: [Orgmode] Two questions about using a =#+begin_src emacs-lisp= block, chris . m . malone, 2011/02/22
- [Orgmode] Re: Two questions about using a =#+begin_src emacs-lisp= block, Achim Gratz, 2011/02/22
[Orgmode] Re: Two questions about using a =#+begin_src emacs-lisp= block, Dan Davison, 2011/02/21
- [Orgmode] Re: Two questions about using a =#+begin_src emacs-lisp= block,
Eric Schulte <=