capitaomorte/yasnippet — Issue #196: yas/exit-snippet fails with wrong number of arguments
Author: ldeck
Created: 2011-11-22 04:58:16+00:00
State: open

If using nxhml-mode, for example, and you type 'div' and hit tab. Yasnippet expands this, but never seems to exit.

The snippet is defined as:
# contributor: Anders Bach Nielsen
# name: ...

# key: div
# --
$0

So whether you enter something for $1 or not and tab to $0, it won't allow the snippet to finish. If you move the cursor to the end of the line and hit tab it jumps back to $0.

using (M-x yas/exit-snippet) produces the following error:

call-interactively: Wrong number of arguments: (lambda (snippet) "Goto exit-marker of SNIPPET." (interactive) (setf (yas/snippet-force-exit snippet) t) (goto-char (if (yas/snippet-exit snippet) (yas/exit-marker (yas/snippet-exit snippet)) (overlay-end (yas/snippet-control-overlay snippet))))), 0

I'm using the latest yasnippet from master:HEAD