all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: weber <hugows@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: yasnippet insert file name
Date: Sun, 20 Jul 2008 18:31:24 -0700 (PDT)	[thread overview]
Message-ID: <869c0642-5cbd-4806-a4a9-ef11478f200d@b1g2000hsg.googlegroups.com> (raw)
In-Reply-To: g5vp8d$3dl$1@tamarack.fernuni-hagen.de

On Jul 20, 1:31 pm, Fabian Braennstroem <f.braennstr...@gmx.de> 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.

HTH,
weber


  reply	other threads:[~2008-07-21  1:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-20 16:31 yasnippet insert file name Fabian Braennstroem
2008-07-21  1:31 ` weber [this message]
2008-07-21 18:22   ` Fabian Braennstroem

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=869c0642-5cbd-4806-a4a9-ef11478f200d@b1g2000hsg.googlegroups.com \
    --to=hugows@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.