From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: `completion-in-region' Date: Mon, 12 Apr 2010 16:36:23 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1271086609 382 80.91.229.12 (12 Apr 2010 15:36:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Apr 2010 15:36:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 12 17:36:47 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O1Lgr-0003Y1-HE for ged-emacs-devel@m.gmane.org; Mon, 12 Apr 2010 17:36:46 +0200 Original-Received: from localhost ([127.0.0.1]:38153 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1Lgq-0007WN-Vh for ged-emacs-devel@m.gmane.org; Mon, 12 Apr 2010 11:36:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1Lgc-0007SZ-Ky for emacs-devel@gnu.org; Mon, 12 Apr 2010 11:36:30 -0400 Original-Received: from [140.186.70.92] (port=32771 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1Lgb-0007SJ-7L for emacs-devel@gnu.org; Mon, 12 Apr 2010 11:36:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1LgY-0000cZ-W4 for emacs-devel@gnu.org; Mon, 12 Apr 2010 11:36:29 -0400 Original-Received: from ppsw-b.csi.cam.ac.uk ([131.111.8.135]:46918 helo=ppsw-5.csi.cam.ac.uk) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1LgY-0000cK-Re for emacs-devel@gnu.org; Mon, 12 Apr 2010 11:36:26 -0400 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Original-Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]:52862) by ppsw-5.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.155]:587) with esmtpsa (LOGIN:sl392) (TLSv1:DHE-RSA-AES128-SHA:128) id 1O1LgW-00064j-Ik (Exim 4.70) (return-path ); Mon, 12 Apr 2010 16:36:24 +0100 In-Reply-To: (Stefan Monnier's message of "Sun, 11 Apr 2010 11:32:32 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:123521 Archived-At: On 2010-04-11 16:32 +0100, Stefan Monnier wrote: >> I am re-designing snippet.el >> (http://www.emacswiki.org/emacs/SnippetMode) to tightly integrate >> with abbrev. Emacs has abbreviation feature for a very long time but >> it hasn't advanced much. 'snippet' is a substantial step forward. It >> was original introduced in textmate and becomes so popular that >> almost all text editors have it now. > > There have been many Emacs packages to do such things. Emacs itself > comes with skeleton.el, tempo.el, expand.el, and probably some more. > I'm not really interested in adding yet another such package to Emacs. > OTOH I'd be interested in consolidating them so as to try and reduce > the urge of people to reinvent them yet again. I think you are underestimating the power snippet brings about. It was probably because it looks so simple that nobody thought worthwhile to implement it until textmate did. For example, with snippet one can set up an email blogging tool in under 30 seconds. Can any of the other packages gives user the same productivity? ---------------- My intention is indeed to consolidate snippet.el and absorb good features from other packages and textmate. For example I have the following in the todo: * Snippet language An easy-to-use language (syntax) for creating snippets should be constructed by taking into account: *** study textmate's snippet syntax and features *** Is there any nice features in yasnippet that worth adopting? *** study tempo and skeleton *** peg.el might be useful Library that might be useful: http://www.emacswiki.org/emacs/peg.el *** form a usable sub-language for snippet *** what's the best way to indicate same fields? Leo