From: Dan Davison <davison@stats.ox.ac.uk>
To: "Sébastien Vauban"
<public-wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@plane.gmane.org>
Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org
Subject: Re: debugging sbe calls
Date: Fri, 06 Aug 2010 05:53:33 -0400 [thread overview]
Message-ID: <87hbj8hxsy.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <87aap0885g.fsf@mundaneum.com> ("Sébastien Vauban"'s message of "Fri, 06 Aug 2010 10:20:11 +0200")
Sébastien Vauban <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
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 don'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 <TAB>' 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 extra
> 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
next prev parent reply other threads:[~2010-08-06 9:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-05 12:42 debugging sbe calls Inquisitive Scientist
2010-08-06 8:20 ` Sébastien Vauban
2010-08-06 9:53 ` Dan Davison [this message]
2010-08-08 11:16 ` David Maus
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=87hbj8hxsy.fsf@stats.ox.ac.uk \
--to=davison@stats.ox.ac.uk \
--cc=public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org \
--cc=public-wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@plane.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).