From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: [Babel] Reporting 2 problems of code execution Date: Thu, 02 Dec 2010 10:35:38 +0100 Message-ID: <80y6888ql1.fsf@missioncriticalit.com> References: <80wrnxi59j.fsf@missioncriticalit.com> <80pqtoijrw.fsf@missioncriticalit.com> <877hftdx5b.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Eric, "Eric Schulte" wrote: > S=C3=A9bastien Vauban 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 man= y 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 --=20 S=C3=A9bastien 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