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 19:42:44 +0200 Message-ID: <20140317174244.GA28011@debian> References: <20140317041012.GA24472@debian> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1395078190 8566 80.91.229.3 (17 Mar 2014 17:43:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Mar 2014 17:43:10 +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 18:43:19 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 1WPbZA-00016y-6W for ged-emacs-devel@m.gmane.org; Mon, 17 Mar 2014 18:43:12 +0100 Original-Received: from localhost ([::1]:59383 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPbZ9-0006A8-R2 for ged-emacs-devel@m.gmane.org; Mon, 17 Mar 2014 13:43:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPbYz-000643-Ex for emacs-devel@gnu.org; Mon, 17 Mar 2014 13:43:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPbYn-0000QL-Pg for emacs-devel@gnu.org; Mon, 17 Mar 2014 13:43:01 -0400 Original-Received: from mail-ee0-x235.google.com ([2a00:1450:4013:c00::235]:36482) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPbYn-0000Q2-Ie for emacs-devel@gnu.org; Mon, 17 Mar 2014 13:42:49 -0400 Original-Received: by mail-ee0-f53.google.com with SMTP id b57so3734504eek.40 for ; Mon, 17 Mar 2014 10:42:48 -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:content-transfer-encoding :in-reply-to:user-agent; bh=q/HPMrHWeqte2+zJoS3HHS4IfEC28S6ZIaDdIfoMdso=; b=xs0aT+XH1yVLB9jc5RPhOxhULq88MYYm6GhZaV7TEX5asZOvTwyPK0TsgKRdG7usiO IBNDswgodQkbK8yqa3lykBwfYBB8Tk6ta+5h19lPlIZrYUa/ORYFgCp1zQpEvbRdNg9x CrhBih2dYq6+fJ54OiXXwRL5rzTlAB7M1D8lzTLO6L7ZT1Qu7RnniobiEgklIoWaWLoj BXwGfkC2Ho0Mud5tV7F5w7IZyZxGU88IyisNpWA9+0UVidVMtZVj/Gl6mNmj00dn5Hhw 48+s4cWW502+XjAgN9RY+2OVp+ADaUa6pb7uD0PEo1iGqtuIbDv4PDszUsLDcZZScxDA icRQ== X-Received: by 10.14.213.135 with SMTP id a7mr24967505eep.57.1395078168546; Mon, 17 Mar 2014 10:42:48 -0700 (PDT) Original-Received: from debian ([31.28.242.87]) by mx.google.com with ESMTPSA id o4sm8351485eef.20.2014.03.17.10.42.46 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 17 Mar 2014 10:42:47 -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::235 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:170455 Archived-At: I've checked those ones you noted, even snippet.el . They all are not so powerful and user-friendly as yasnippet. And they are all not manage keybindings. And probably not support expansion depending on context in simple way. And docs are really stingy. And snippet language is not so powerful and readable, as in yasnippet. But you are right - skeleton is totally enough for most modes. And about snippet.el. I still think, that Yasnippet is better general solution for snippets for Emacs. It has the biggest user community, and lots of ready snippets on github, which can be installed easily. Yasnippet will be better concurrent for snippet systems in other editors and IDEs. On Mon, Mar 17, 2014 at 10:45:29AM -0400, Stefan wrote: > > one - lots of modes creates its own wheel to support snippets. > > > html-mode uses own snippets for tags > > web-mode uses own snippets "C-c C-s" > > markdown-mode uses own snippets for headers > > > and that's only modes I use. > > Emacs already has several "snippet" systems builtin: > tempo.el, skeleton.el, expand.el, and I'm sure I'm forgetting some. > > > What do you think about it? > > Joćo has a snippet.el in the works, which is yet-another of those > snippet systems, but this one is designed as a "Lispish core, such that > yasnippet.el can be provided as a layer on top of it. He's been writing > it with a fair bit a bitching^H^H^H^H^H^H^Hreview from me, and if all > goes well it could be included in 24.5. > > > Stefan