emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: [Babel] Reporting 2 problems of code execution
Date: Thu, 02 Dec 2010 10:35:38 +0100	[thread overview]
Message-ID: <80y6888ql1.fsf@missioncriticalit.com> (raw)
In-Reply-To: 877hftdx5b.fsf@gmail.com

Hi Eric,

"Eric Schulte" wrote:
> Sébastien Vauban <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org> writes:
>> You're right that could be it. I often forget about adding that setting, even
>> though it's more or less mandatory for the sh blocks -- at least, in many sh
>> blocks I write...
>
> You can specify this as the default header argument for all shell blocks
> with the following.
>
> #+begin_src emacs-lisp
>   (add-to-list 'org-babel-default-header-args '((:results . "output")))
> #+end_src

Thanks for the tip but... that may be a bit drastic, I mean forcing every
snippet of *every language* to behave like that: I'm convinced it's the most
natural choice for sh blocks, but maybe the less natural (i.e., must be
overridden) for all other programming languages.

In fact, I have the strong impression that we should need this on a language
basis, something like:

#+begin_src emacs-lisp
  (add-to-list 'org-babel-default-header-args '(
               (sh . (:results . "output"))
               (emacs-lisp . (:results . "value"))))
#+end_src

I feel the same about the Babel "file" property:

#+BABEL: :engine mysql :cmdline -S server -U sa -P secret -d storeall -n -w 700 -s " "

Not being able to specify the language these defaults apply to may rapidly
lead to clashes... Or we have to set the default for the language for which we
have the biggest number of chunks, and explicitly set the values for all the
other snippets that are written in other languages.

Maybe allowing such a specification line?

#+BABEL sql: :engine mysql :cmdline -S server -U sa -P secret -d storeall -n -w 700 -s " "

Best regards,
  Seb

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2010-12-02  9:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-28 20:04 [Babel] Reporting 2 problems of code execution Sébastien Vauban
2010-11-29  4:34 ` Charles C. Berry
2010-11-29  9:03   ` Sébastien Vauban
2010-11-29 16:47     ` Charles C. Berry
2010-11-29 19:49     ` Dan Davison
2010-11-30  2:03     ` Eric Schulte
2010-12-02  9:35       ` Sébastien Vauban [this message]
2010-12-02 19:40         ` Eric Schulte
2010-12-02 19:58           ` Sébastien Vauban
2010-12-05 15:39             ` 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=80y6888ql1.fsf@missioncriticalit.com \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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).