On Dec 6, 2010, at 8:07 AM, Achim Gratz wrote:
"Thomas S. Dye" writes:
Emacs configuration is one of the highest barriers to entry for
potential adopters of Org-mode, IMO. The idea of context-sensitive
configuration is potentially terrific. It gets the user to work more
quickly than would o
Hi Dan,
Emacs configuration is one of the highest barriers to entry for
potential adopters of Org-mode, IMO. The idea of context-sensitive
configuration is potentially terrific. It gets the user to work more
quickly than would otherwise be the case. The problem I've run into
is that ex
Dan Davison writes:
> This makes me think of another good use of the sbe ("src block eval")
> function. I'm often seeing Org documents with a src block like this,
>
> #+source: essential-document-config
> #+begin_src emacs-lisp
> ;; some essential document-specific configuration
> #+end_src
>
> a
Vincent Beffara writes:
> Hi,
>
>>> (and it would be excellent to allow for a code block as a preamble,
>>> instead of a string in the header or as an alternative, because
>>> preambles once they are allowed tend to grow uncontrollably ;->)
>>
>> This is currently possible using the `sbe' functio
(Also worth mentioning that python 3 allows you to use actual unicode
characters inside strings in the file, not \xff chars; not sure if
org-babel needs to change its habits between python2 and python3?)
Vincent Beffara writes:
>>> #+begin_src python
>>> # -*- coding: utf-8 -*-
>>> s = "é"
>>> #
Hi,
Vincent Beffara writes:
> Hi,
>
> "preamble" sounds fine
As this seems to be the general consensus I've replaced "prefix" with
"preamble" as the header argument name
> (and it would be excellent to allow for a code block as a preamble,
> instead of a string in the header or as an alternati
Sébastien Vauban writes:
>
> Isn't such a prefix already available through the "shebang" option: can't it
> be multiline? Anyway, I don't think it's the problem here...
>
The :shebang header argument is only used for tangling, not during
evaluation, however if you ever needed to tangle python c
Hi,
I've just pushed up a new prefix header argument. This header argument
only has meaning for python code blocks (since it is tied into
evaluation each language would have to handle it separately). This is
only used during external evaluation (i.e. not when :session is
specified) and the value