From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Danil Orlov Newsgroups: gmane.emacs.devel Subject: Re: Including Yasnippet to Emacs Date: Mon, 17 Mar 2014 23:09:42 +0200 Message-ID: <20140317210942.GB28011@debian> References: <20140317041012.GA24472@debian> <20140317174244.GA28011@debian> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1395090587 30327 80.91.229.3 (17 Mar 2014 21:09:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Mar 2014 21:09:47 +0000 (UTC) Cc: =?iso-8859-1?Q?Jo=E3o_T=E1vora?= , emacs-devel@gnu.org To: Stefan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 17 22:09:57 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WPenC-0006xd-RT for ged-emacs-devel@m.gmane.org; Mon, 17 Mar 2014 22:09:54 +0100 Original-Received: from localhost ([::1]:60230 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPenC-0003Te-Co for ged-emacs-devel@m.gmane.org; Mon, 17 Mar 2014 17:09:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPen8-0003TM-0p for emacs-devel@gnu.org; Mon, 17 Mar 2014 17:09:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPen6-0005NX-BZ for emacs-devel@gnu.org; Mon, 17 Mar 2014 17:09:49 -0400 Original-Received: from mail-ee0-x22c.google.com ([2a00:1450:4013:c00::22c]:63902) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPen6-0005NR-2r for emacs-devel@gnu.org; Mon, 17 Mar 2014 17:09:48 -0400 Original-Received: by mail-ee0-f44.google.com with SMTP id e49so4652677eek.3 for ; Mon, 17 Mar 2014 14:09:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=vOXmqAeQSkhfwdDBenEqVmu/rIsObez8vB0uha44ZBA=; b=uu1CRPYFkS4mDdFvgwIbxuVLayc6PeXotUVn4kldkaYAMJE2mekiQPrlkReG8rUNqv ossn7DB31K4OHxSufgVj4mXt8jdMCWRRBlrpv3q5O+kl7gyrCILhOz9JGq3V7o8aOc4r IGBmisOXyTStyf11i25Gdc66BGzoS/q28xuaLt46ds2Ije98SDaMRXB3VPbfI3xr55K1 3rm9OPUwtpnF4/VYp2ygAyAWuzd/x5TjMz1w0RS9wB7pJnw7/O7iW7qMHehNix4Q/OHu wBjYS7PqpVb8ImK6dR7Fy/H63mHIutQhlVgJxk8zYpQNCBbaDEz0x23EeTXy6omArHcL 0V1Q== X-Received: by 10.14.6.195 with SMTP id 43mr24291een.101.1395090587054; Mon, 17 Mar 2014 14:09:47 -0700 (PDT) Original-Received: from debian ([2001:5c0:1400:a::af]) by mx.google.com with ESMTPSA id m8sm42117862eeg.11.2014.03.17.14.09.45 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 17 Mar 2014 14:09:46 -0700 (PDT) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:170461 Archived-At: Okay, I've got your point. On Mon, Mar 17, 2014 at 03:36:42PM -0400, Stefan wrote: > > I've checked those ones you noted, even snippet.el. They all are not so > > powerful and user-friendly as yasnippet. > > snippet.el is not designed to be user-friendly, but to be easy to > integrate in a major-mode instead (yasnippet rather sucks in this > regard, you end up needing to distribute umpteen little files instead). > > [ BTW, part of the intention behind snippet.el is to make Edebug work > with them. Si in some cases they may turn out to be more > user-friendly, rather than less so. ] > > As for "not so powerful", I'm not sure what you mean: they should be > pretty much as powerful as yasnippet's since yasnippet will be written > on top of them. And of course, they can run any Lisp code you like. > > > And they are all not manage keybindings. > > This layer is not provided yet, indeed. E.g. I want to link snippet.el with > abbrevs, so the "table of snippets" will be an abbrev table. > > > And probably not support expansion depending on context in simple way. > > Not sure what "in a simple way" means. > > > And docs are really stingy. > > For skeleton.el, the system is trivial enough that I don't know what > more docs we could provide. For snippet.el, it's still in flux and > there are indeed no docs yet, IIRC. > > > And snippet language is not so powerful and readable, as in yasnippet. > > "Readable" here is in the eye of the beholder. But the whole idea > behind snippet.el is to get rid of this dichotomy: you can write your > snippets using the Lispish snippet.el syntax (i.e. a syntax that > makes sense to me) or you can write them in the yasnippet syntax if > you prefer $ over parentheses. > > > Stefan