From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: function for inserting a block Date: Sat, 21 Oct 2017 08:56:29 -0700 Message-ID: <87zi8kv6j6.fsf@ericabrahamsen.net> References: <877exghblx.fsf@ericabrahamsen.net> <87fubuzpsa.fsf@nicolasgoaziou.fr> <874lsabdop.fsf@ericabrahamsen.net> <87vak1l11m.fsf@nicolasgoaziou.fr> <87r2uoc4q7.fsf@ericabrahamsen.net> <87bmllk5xy.fsf@nicolasgoaziou.fr> <878tgmwwsa.fsf@ericabrahamsen.net> <87po9q2e8k.fsf@nicolasgoaziou.fr> <87tvyyvpst.fsf@ericabrahamsen.net> <87fuaiz069.fsf@nicolasgoaziou.fr> <87lgk9eo4d.fsf@ericabrahamsen.net> <87fuahxxvs.fsf@nicolasgoaziou.fr> <87r2u1cuwj.fsf@ericabrahamsen.net> <87infdctzq.fsf@ericabrahamsen.net> <87k1zsbizs.fsf@ericabrahamsen.net> <87k1zp4rxj.fsf@ericabrahamsen.net> <871slx4j6p.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5wAM-0002BH-4d for emacs-orgmode@gnu.org; Sat, 21 Oct 2017 11:58:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5wAJ-0008Ja-3H for emacs-orgmode@gnu.org; Sat, 21 Oct 2017 11:58:26 -0400 Received: from [195.159.176.226] (port=56842 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e5wAI-0008Iq-SJ for emacs-orgmode@gnu.org; Sat, 21 Oct 2017 11:58:23 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1e5wA6-0004hk-IP for emacs-orgmode@gnu.org; Sat, 21 Oct 2017 17:58:10 +0200 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 Kaushal Modi writes: > On Fri, Oct 20, 2017 at 5:15 PM Eric Abrahamsen wrote: > > The template really only inserts the block type, not anything specific > like the source language or export backend. > > Right, but based on the code you have, you can easily add "SRC org", "SRC emacs-lisp" to the default value of that list. Looking at that, users can also get an idea that > they can add their favorite languages to that list too. > > I think prompting for > "second-level" information like that might be a little overkill. > > I second that. The first-level prompt also feels a bit slow, honestly, compared to using easy templates like " the, well, EXAMPLE block as usual. But *if region is selected*, it does the wrapping as in your code. Perhaps it would make sense to combine the two functionalities; that's not a decision I can make, though.