From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: function for inserting a block Date: Fri, 20 Oct 2017 21:43:56 +0000 Message-ID: References: <877exghblx.fsf@ericabrahamsen.net> <87ziabepxt.fsf@ericabrahamsen.net> <87bmml2fb0.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: multipart/alternative; boundary="94eb2c07de525ad3bd055c015fc3" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5f5O-0000xa-AX for emacs-orgmode@gnu.org; Fri, 20 Oct 2017 17:44:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5f5N-0000hW-0G for emacs-orgmode@gnu.org; Fri, 20 Oct 2017 17:44:10 -0400 Received: from mail-yw0-x229.google.com ([2607:f8b0:4002:c05::229]:47531) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e5f5M-0000hK-Rj for emacs-orgmode@gnu.org; Fri, 20 Oct 2017 17:44:08 -0400 Received: by mail-yw0-x229.google.com with SMTP id u142so4036990ywg.4 for ; Fri, 20 Oct 2017 14:44:08 -0700 (PDT) In-Reply-To: <871slx4j6p.fsf@ericabrahamsen.net> 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: Eric Abrahamsen , emacs-orgmode@gnu.org --94eb2c07de525ad3bd055c015fc3 Content-Type: text/plain; charset="UTF-8" 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 " let's see what he says. > -- Kaushal Modi --94eb2c07de525ad3bd055c015fc3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Oct 20= , 2017 at 5:15 PM Eric Abrahamsen <eric@ericabrahamsen.net> wrote:
The template really only inserts the block type, not anything spe= cific
like the source language or export backend.

Right, but based on the code you have, you can easily add "SRC org&qu= ot;, "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 langua= ges to that list too.
=C2=A0
= I think prompting for
"second-level" information like that might be a little overkill.<= br>

I second that. The first-level prompt a= lso feels a bit slow, honestly, compared to using easy templates like "= ;<e". So in my config, I make "<e" (just an example) t= o insert the, well, EXAMPLE block as usual. But *if region is selected*, it= does the wrapping as in your code.

This is what I= mean (GIF animation):


I use hydra to provide those awesome hints.. but the same can be d= one without hydras too.=C2=A0

As for what should be escaped and what shouldn't, I defer to Nico= las,
let's see what he says.
--

Kaushal Modi

--94eb2c07de525ad3bd055c015fc3--