In emacs yas-minor-mode, I want to use place-holders in values listed in yas-choose-value. Is it possible? Following code is what I want to do. However it doesn't work well..
# -*- mode: snippet -*-
# name: my_func
# key: my_func
# --
function_${1:$$(yas-choose-value '("x1(arg1=${2:foo}", "arg2=${3:bar)" "x2(arg1=${2:hoge})" "x3()" ))}
$0
I expects following operation.
(step-1) yas-expand is executed for "my_func"
I should be able to select one from "x1", "x2" and "x3"
(step-2) arguments should be changed acording to the selection in (step-1)
if "x1" is selected,
function_x1(arg1=foo, arg2=bar)
should be complemented. Positions of "foo" and "bar" are place holder and they are default value.
if "x2" is selected,
function_x2(arg1=hoge)
should be complemented. Positions of "hoge" is place holder and it is default value.
if "x3" is selected,
function_x3()
should be complemented. No argument.