From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: Re: [POLL] Should Org tempo be enabled by default? (expand templates thru e.g. " References: <87wowoh1m9.fsf@aquinas.i-did-not-set--mail-host-address--so-tickle-me> <871sevime2.fsf@nicolasgoaziou.fr> <87efivbas8.fsf@gmail.com> <87d0ya7z89.fsf@gmx.us> <87sh74r09d.fsf@gmail.com> <87in7z6quu.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fFqSD-0005Bk-JP for emacs-orgmode@gnu.org; Mon, 07 May 2018 20:26:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fFqS9-0000Jj-L0 for emacs-orgmode@gnu.org; Mon, 07 May 2018 20:26:05 -0400 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:34188) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fFqS9-0000JP-DE for emacs-orgmode@gnu.org; Mon, 07 May 2018 20:26:01 -0400 Received: by mail-wm0-x22f.google.com with SMTP id a137-v6so17045613wme.1 for ; Mon, 07 May 2018 17:26:01 -0700 (PDT) In-Reply-To: <87in7z6quu.fsf@gmx.us> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Rasmus , emacs-orgmode@gnu.org Hi Rasmus, 2018ko maiatzak 7an, Rasmus-ek idatzi zuen: > Srecode seems pretty neat, though it might only work in file buffers. > Other than being shipped with Emacs, does it have any advantage over yas? > Are there any plans to merge the two or make them more compatible? Not AFAIK (to both questions). Yasnippet is in GNU ELPA, so the barrier to it becoming integrated into emacs (in whatever way) is low (or at least, not dominated by questions of copyright assignment). >=20 > I think [skeleton.el] was too restrictive. I think I also tried > abbrev and found it not sufficient. It=CA=BCs a pity. In an ideal world emacs would have only one built-in template expansion system which we could build on, instead of 3-4 (depending on whether you count abbrev). But, this is the world we live in. (This is certainly not a criticism of org-tempo btw!) >From another message in the thread: > Thanks. I guess it would be enough to check if the elements of the alist > are cons (newer Orgs) or lists (older orgs). A more "complex" procedure > could look for at the content of the ca?dr, I guess, but I don=E2=80=99t = know if > that=E2=80=99s necessary. AIUI the change was from a cons of (character, template string) to a cons of (string, template string). The relevant commit is b56df73. --=20 Aaron Ecay