From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: Re: function for inserting a block Date: Sat, 11 Nov 2017 12:13:45 +0800 Message-ID: <84fddb9b-1e00-3666-c731-14b0bfa4e660@gmail.com> References: <877exghblx.fsf@ericabrahamsen.net> <87r2u1cuwj.fsf@ericabrahamsen.net> <87infdctzq.fsf@ericabrahamsen.net> <87k1zsbizs.fsf@ericabrahamsen.net> <87k1zp4rxj.fsf@ericabrahamsen.net> <871slx4j6p.fsf@ericabrahamsen.net> <87376btslq.fsf@nicolasgoaziou.fr> <87vaj7oyxb.fsf@ericabrahamsen.net> <871sl9ow44.fsf@gnu.org> <87fu9pgfkj.fsf@nicolasgoaziou.fr> <87375ouanr.fsf@gmx.us> <871sl8e76c.fsf@nicolasgoaziou.fr> <87y3nfse6m.fsf@gmx.us> <87tvy3sa7m.fsf@gmx.us> <87bmkbflbc.fsf@ericabrahamsen.net> <87po8qscmq.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDNB5-0003QO-C4 for emacs-orgmode@gnu.org; Fri, 10 Nov 2017 23:13:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDNB0-0002hk-8I for emacs-orgmode@gnu.org; Fri, 10 Nov 2017 23:13:55 -0500 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]:48676) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eDNB0-0002hX-23 for emacs-orgmode@gnu.org; Fri, 10 Nov 2017 23:13:50 -0500 Received: by mail-pg0-x244.google.com with SMTP id s11so3375550pgc.5 for ; Fri, 10 Nov 2017 20:13:50 -0800 (PST) Received: from [0.0.0.0] ([119.28.89.243]) by smtp.gmail.com with ESMTPSA id f85sm22961515pfj.5.2017.11.10.20.13.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Nov 2017 20:13:48 -0800 (PST) In-Reply-To: <87po8qscmq.fsf@gmx.us> Content-Language: en-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: emacs-orgmode@gnu.org I agree. I hope this feature too. +1 On 11/10/2017 05:31 PM, Rasmus wrote: > Hi Eric, > > Eric Abrahamsen writes: > >>> Also, Eric, it seems that org-structure-template-alist only supports a >>> single letter for short-hands (the car of an entry in >>> org-structure-template-alist is a char). I used to have blocks like ">> expanding to an "abstract" special-block, which I guess isn’t possible >>> anymore? >> I hadn't thought of that. Really, all I ever wanted was to wrap things >> in blocks... >> >> I don't see any reason why org-structure-template-alist couldn't go back >> to using string keys. Then we could use read-string, and wouldn't have >> to have special behavior -- a string that didn't exist in the >> alist could just be used literally to make a block. > I’d prefer that. For some special blocks, a few characters might makes it > more intuitive, e.g. "def" → "definition", "hyp" → "hypothesis" etc. > > Thanks, > Rasmus >