Issue 197 in yasnippet: yas-after-exit-snippet-hook won't run when it is specified in snippet file.

34 views
Skip to first unread message

codesite...@google.com

unread,
Jan 7, 2013, 8:13:53 AM1/7/13
to smart-...@googlegroups.com
Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 197 by kawabata...@gmail.com: yas-after-exit-snippet-hook won't
run when it is specified in snippet file.
http://code.google.com/p/yasnippet/issues/detail?id=197

When I write the following snippet, as I want to run some buffer clean-up
code after executing the snippet,

> # -*- mode: snippet -*-
> # binding: C-c y r
> # expand-env: ((yas-after-exit-snippet-hook 'do-some-cleanup)))
> # --
> $1 ${1:$(some-complex-function text)}

It didn't run the `do-some-cleanup' function.
It works when I execute (setq yas-after-exit-snipped-hook 'do-some-cleanup)

Is there any way to run arbitary elisp code in editing buffer
after I finished expansion?


Reply all
Reply to author
Forward
0 new messages