[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: again on snippets
From: |
Andrea Crotti |
Subject: |
Re: again on snippets |
Date: |
Sat, 30 Oct 2010 14:36:59 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) |
Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
> Hi,
>
> it's not just yasnippet:
> as far as speed is at stake
>
> have a look into python.el, how loop-templates
> are built in.
>
> Andreas
>
> ...
I had a look and it uses skeleton, which is fine but yasnippet is much
more powerful.
The best thing maybe is just one function to check if it's a header or
not and then just expand accordingly.
But I would need a meta-snippet because all the functions can be
declared in more or less the same way, right?
so a meta-snippet would be
<return type> (optional namapsace identifier::)<name> (<parameters>)