I know the problem from the very beginning: if you delete (use something like C-w or C-k) the region of the snippet you just expanded, things will get weird. I thought people will never want to delete the snippet after expanded it; and if he really want to, he can use undo, which works perfectly. But I realized that I was wrong when the Nth people report this bug to me.
So, though I'm busy preparing for my final exam, I decide to sit down and fix the problem. And I'm glad to announce the release of YASnippet 0.5.0 with this annoying problem fixed.
There are also other enhancements (especially the hippie-expand integration that many people requested). Here's the ChangeLog for 0.5.0:
- Integrate with hippie-expand. Just add
yas/hippie-try-expandtohippie-expand-try-functions-list. - If you set
yas/fall-back-behaviorto'return-nil, YASnippet will returnnilwhen it can't find a snippet to expand. - Defect fix: the condition of a snippet was evaluated twice in earlier version.
- Deleting snippet (using
C-worC-k) won't cause serious problem now. - Several complex snippet for python-mode from Yasser included in the distribution.
I wish you enjoy it. :)
Comments (4)
@chris,
You can download it at here.