From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Shelagh Manton Newsgroups: gmane.emacs.help Subject: Re: the v word but not a religious salvo Date: Tue, 29 Sep 2009 23:04:52 +0000 (UTC) Message-ID: References: <877hviak30.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1254265569 27412 80.91.229.12 (29 Sep 2009 23:06:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Sep 2009 23:06:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 30 01:06:02 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 1Msllg-0004QQ-Lt for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Sep 2009 01:06:00 +0200 Original-Received: from localhost ([127.0.0.1]:56264 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Msllg-00059x-0a for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Sep 2009 19:06:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Msll8-000567-7W for help-gnu-emacs@gnu.org; Tue, 29 Sep 2009 19:05:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Msll3-0004yE-9m for help-gnu-emacs@gnu.org; Tue, 29 Sep 2009 19:05:25 -0400 Original-Received: from [199.232.76.173] (port=42356 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Msll2-0004y3-KZ for help-gnu-emacs@gnu.org; Tue, 29 Sep 2009 19:05:20 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:54243) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Msll1-0007fP-UU for help-gnu-emacs@gnu.org; Tue, 29 Sep 2009 19:05:20 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1Mslkz-0004Gf-G7 for help-gnu-emacs@gnu.org; Wed, 30 Sep 2009 01:05:17 +0200 Original-Received: from 203-219-222-168-cbr-pow-ts2-2600.tpgi.com.au ([203.219.222.168]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Sep 2009 01:05:17 +0200 Original-Received: from shelagh.manton by 203-219-222-168-cbr-pow-ts2-2600.tpgi.com.au with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Sep 2009 01:05:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 55 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 203-219-222-168-cbr-pow-ts2-2600.tpgi.com.au User-Agent: Pan/0.132 (Waxed in Black) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:68545 Archived-At: On Mon, 28 Sep 2009 15:30:11 -0500, Harry Putnam wrote: > I wondered if anyone here is at all familiar with the different > insertions related plugins for vim? > > This is not a plug for vim... Although I am embarrassingly dumb about > elisp, I am a veteran emacs user for over 10 yrs and not looking to > switch this late in the game, but like lots of people I've used vim most > of that time too. Mostly for lighter work like quick edits to system > files. Or to do the same remotely so I can rely only on what the remote > might have onboard. > > One vim plugin I've seen in use called xpt looks and sounds very very > useful. > > There is a (thankfully short) online demo, you may find it somewhat > poorly done... I did. However it does give a good hint as to the power > of this type of approach to helping programmers along with inserting oft > repeated things and even whole script outlines. > > (vim xpt templates plugin) > http://vimeo.com/4449258 > > I'm not plugging for vim... what I want to ask is if there is any kind > of thing like this available for emacs. > > I know about skeletons and have written dozens of them for use in > various places. > > And maybe a skeleton can do the advanced things demo'ed in the above > cited demo... if so maybe someone has a few examples I can mess with. > > I'm thinking something that not only inserts a chunk but offers more > help at specific points if you signal that you want that. > > I guess it would be an `interactive' skeleton... I have no idea how to > write such a thing but I might be able to distort, slaughter and > generally torture some else's coding in such a way as to get what I want > from it. > > > Otherwise I'd like to know about any packages that do something even > vaguely similar to vim's xpt. I've found skeletons to be very flexible and interactive if need be. I used some quite complex skeletons when I wrote the lilypond-templates [[http://code.google.com/p/lilypond-templates/]] package. The skeleton page on the emacs-wiki [[http://www.emacswiki.org/emacs/SkeletonMode]] has some useful ideas too about using small text filter functions within a skeleton. Skeletons can also give you choices, and a default if you choose nothing. So if you don't grok yasnippets (like me) skeletons could still be a help. Shelagh