From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: debugging sbe calls Date: Fri, 06 Aug 2010 05:53:33 -0400 Message-ID: <87hbj8hxsy.fsf@stats.ox.ac.uk> References: <87aap0885g.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=50310 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OhJcf-00074E-94 for emacs-orgmode@gnu.org; Fri, 06 Aug 2010 05:53:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OhJcd-0006ay-VG for emacs-orgmode@gnu.org; Fri, 06 Aug 2010 05:53:53 -0400 Received: from plane.gmane.org ([80.91.229.3]:44726) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhJcd-0006al-Od for emacs-orgmode@gnu.org; Fri, 06 Aug 2010 05:53:51 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1OhJcV-0002Gn-L6 for emacs-orgmode@gnu.org; Fri, 06 Aug 2010 11:53:43 +0200 In-Reply-To: <87aap0885g.fsf@mundaneum.com> (=?utf-8?Q?=22S=C3=A9bastien?= Vauban"'s message of "Fri, 06 Aug 2010 10:20:11 +0200") 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@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org S=C3=A9bastien Vauban writes: > Hi Inquisitive Scientist, > > Inquisitive Scientist wrote: >> I *love* org-babel. > > So do I. That's even not love anymore, but passion... Even if I almost do= n't > use it, only when I need to write doc in a "literate programming" style. = But, > thinking at using it for every little script I write, as well. > > >> Any suggestions on debugging would be much appreciated. >> >> Below is a list of some common mistakes. >> >> ** common mistakes >> >> *** forgetting colon on srcname > > This one is easy to fix. Use yasnippet. Type `sb ' and you're done. > > Definition of `sb': > > #name : #+begin_src...#+end_src > # -- > #+srcname: ${1:name} > #+begin_src ${2:language} $3 > $0 > #+end_src > > The only thing that still annoys me, is: > > - I type the name, then TAB > - I type the language, then TAB > - I have to delete the trailing space (yes, I'm paranoid), but I can't do= it > immediately. I first have to move cursor, then can come back to the ext= ra > space, and remove it... Hi Seb, I'm with you. That was annoying me too. I'm using this simpler one. #+begin_src...#+end_src # -- #+begin_src ${2:language} $0 #+end_src Dan > > Best regards, > Seb