[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: yasnippet insert file name

From: weber
Subject: Re: yasnippet insert file name
Date: Sun, 20 Jul 2008 18:31:24 -0700 (PDT)
User-agent: G2/1.0

On Jul 20, 1:31 pm, Fabian Braennstroem <address@hidden> wrote:
> Hi,
>     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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]