From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: the v word but not a religious salvo Date: Wed, 30 Sep 2009 02:15:10 +0200 Message-ID: References: <877hviak30.fsf@newsguy.com> <87ljjx77wp.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1254270330 6165 80.91.229.12 (30 Sep 2009 00:25:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Sep 2009 00:25:30 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Harry Putnam Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 30 02:25:23 2009 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 1Msn0U-0007cT-Oy for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Sep 2009 02:25:23 +0200 Original-Received: from localhost ([127.0.0.1]:42009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Msn0T-0003gk-N7 for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Sep 2009 20:25:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Msmr3-0004o0-71 for help-gnu-emacs@gnu.org; Tue, 29 Sep 2009 20:15:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Msmqy-0004jM-Fr for help-gnu-emacs@gnu.org; Tue, 29 Sep 2009 20:15:36 -0400 Original-Received: from [199.232.76.173] (port=43244 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Msmqy-0004j7-6l for help-gnu-emacs@gnu.org; Tue, 29 Sep 2009 20:15:32 -0400 Original-Received: from mail-yx0-f191.google.com ([209.85.210.191]:64517) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Msmqx-0000th-Py for help-gnu-emacs@gnu.org; Tue, 29 Sep 2009 20:15:31 -0400 Original-Received: by yxe29 with SMTP id 29so6271887yxe.14 for ; Tue, 29 Sep 2009 17:15:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=CeY7PCvLTvkzh7r0SIcPfp7xPSwxMKX9w6p8vR7Je94=; b=ISjCvzZ2XLpluSJbqNEFkcI1BgSgfpnwGqA2US6tzo3CZth1j6VcwS5LEYkwJs3oBA rEp66ULuhMmxPWeLm8TC8SYxI0m+s61fLQEZYVVIRgVJLROLQJBOEM7BnTiIv6V0x3T9 i9rGbAnFUEFC3FBmOgHvKA3szRFLRxwpYaQaQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=gbeBDSeKPqOidf+el7BkbLy64YcIyjey+Vnec28/NqKeCLQ0w+p9rfa7q7+5+tx5cz 7ey/M2gnQsciOM5ry4ys5fTldlYAwbKX2cgp7O7wuiEEL5sE/A/F5wW4kzuTH8+wvPpF gq03oDcq2ADR5TuQ5dKWL0ZZ/6GROmscf7O+Y= Original-Received: by 10.101.7.25 with SMTP id k25mr5334781ani.192.1254269730173; Tue, 29 Sep 2009 17:15:30 -0700 (PDT) In-Reply-To: <87ljjx77wp.fsf@newsguy.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:68546 Archived-At: There is a special mailing list for yasnippets. I think you are missing something if you think it can't do more... On Tue, Sep 29, 2009 at 11:33 PM, Harry Putnam wrote: > Lennart Borgman writes: > >> On Mon, Sep 28, 2009 at 10:30 PM, Harry Putnam wrot= e: >>> I wondered if anyone here is at all familiar with the different >>> insertions related plugins for vim? >> >> I am not using it currently, but have you looked at yasnippet >> >> =C2=A0 =C2=A0http://www.emacswiki.org/emacs/Yasnippet >> >> It would be interesting to hear how it compare. (Maybe you could add >> something on the wiki?) > > I can't compare because I haven't used vims xpt but so far I guess I'm > a little bit disappointed. > > The docs say you can insert whole templates but when I tried that in > cperl mode... I find most of them aren't anything more than what cperl > already does. =C2=A0There are a few on the list that do more. > > But for example... the for loop template inserts a kind of for loop > that isn't near as common this kind... at least in my experience: > > =C2=A0for (@ar){ > =C2=A0 =C2=A0dosomething; > =C2=A0} > > Instead it offers: > > =C2=A0 for (my $var =3D 0; $var < expression; $var++) { > =C2=A0 =C2=A0 =C2=A0# body... > =C2=A0 } > Which is really a different kind of usage. > > I realize you can make your own and edit the defaults... but then I > can already do that with skeletons. > > The difference is that you can tab thru the for loop offered and fill > it out all the way ... so that is saying something. =C2=A0But most of the > offerings for perl that isn't true. =C2=A0Or only partly true. > > Somehow I guess I expected more.. like a whole starter script being > inserted. > > I'm sure I can set that up in yasnippets too, but I already have a > skeleton doing that job. > > Hopefully as I work with yasnippets and learn more about it... it will > get better and better. > > > >