I just saw yasnippet and wonder, if it is possible to do
filename completion as well!?
A simple: filename ${1:`(insert-filename)`} does not
work:
filename (error in elisp evaluation: Wrong number of
arguments: (lambda (fn) "Use filename completion to
insert a filename into current buffer."
(interactive "FFilename to insert: ") (insert
fn)), 0)
Would be nice, if someone has a suggestion.
Greetings!
Fabian
Do you want to insert the current buffer file name there?
If so, use (buffer-file-name) instead.
I suggest you ask on yasnippet group, the author always answers there.
HTH,
weber
Greetings!
Fabian