From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabian Braennstroem Newsgroups: gmane.emacs.help Subject: Re: yasnippet insert file name Date: Mon, 21 Jul 2008 20:22:10 +0200 Organization: www.braennstroem.de Message-ID: References: <869c0642-5cbd-4806-a4a9-ef11478f200d@b1g2000hsg.googlegroups.com> Reply-To: f.braennstroem@gmx.de NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1216669244 20616 80.91.229.12 (21 Jul 2008 19:40:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jul 2008 19:40:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 21 21:41:33 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KL1GG-0000v6-N2 for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Jul 2008 21:41:33 +0200 Original-Received: from localhost ([127.0.0.1]:33529 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KL1FN-0004kK-Kd for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Jul 2008 15:40:37 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder.erje.net!news.k-dsl.de!news.uni-stuttgart.de!news.stw-bonn.de!news-koe1.dfn.de!tamarack.fernuni-hagen.de!news.fernuni-hagen.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: f051097002.adsl.alicedsl.de Original-X-Trace: tamarack.fernuni-hagen.de 1216664530 5782 78.51.97.2 (21 Jul 2008 18:22:10 GMT) Original-X-Complaints-To: newsadmin@fernuni-hagen.de Original-NNTP-Posting-Date: Mon, 21 Jul 2008 18:22:10 +0000 (UTC) User-Agent: slrn/0.9.8.1pl1 (Debian) Original-Xref: news.stanford.edu gnu.emacs.help:160421 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:55769 Archived-At: Hi weber, * weber wrote: > On Jul 20, 1:31 pm, Fabian Braennstroem 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. No, I would like to insert a different file. > I suggest you ask on yasnippet group, the author always answers there. Ok., thanks for the hint. Greetings! Fabian