From mboxrd@z Thu Jan 1 00:00:00 1970 From: "numbchild@gmail.com" Subject: Re: function for inserting a block Date: Sat, 18 Nov 2017 00:19:27 +0800 Message-ID: References: <877exghblx.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> <87mv3um4c7.fsf@ericabrahamsen.net> <87mv3osftj.fsf@ericabrahamsen.net> <87o9o37bn5.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c03326e9f59e4055e301b9c" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFjNA-0001QE-OG for emacs-orgmode@gnu.org; Fri, 17 Nov 2017 11:20:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eFjN1-0001KM-IP for emacs-orgmode@gnu.org; Fri, 17 Nov 2017 11:20:08 -0500 Received: from mail-ot0-x230.google.com ([2607:f8b0:4003:c0f::230]:36686) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eFjN1-0001Ht-1z for emacs-orgmode@gnu.org; Fri, 17 Nov 2017 11:19:59 -0500 Received: by mail-ot0-x230.google.com with SMTP id t79so2442605ota.3 for ; Fri, 17 Nov 2017 08:19:59 -0800 (PST) In-Reply-To: <87o9o37bn5.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 Cc: Org-mode --94eb2c03326e9f59e4055e301b9c Content-Type: text/plain; charset="UTF-8" Yeah, I misunderstand your code. Anyway, It should be like this: #+BEGIN_SRC python ... #+END_SRC #+BEGIN_EXAMPLE ... #+END_EXAMPLE etc [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Thu, Nov 16, 2017 at 12:24 AM, Eric Abrahamsen wrote: > "numbchild@gmail.com" writes: > > > I think the function `org-insert-structure-template' also should > respect the `org-babel-uppercase-example-markers'. > > Besides, your new diff does not have a condition on > `org-babel-uppercase-example-markers', you just use `upcase-initials` by > default. Then the new `tempo` snippets > > will be uppercase, but the `org-insert-structure-template` inserted > templates will be different. > > I'm not entirely understanding you here -- it is > `org-insert-structure-template' that respects > `org-babel-uppercase-example-markers', not the tempo snippet (which was > an omission). And none of the code is using `upcase-initials'. > > As far as I can see, the bug is that EXAMPLE is uppercased but the > "begin" and "end" aren't, and also that the tempo snippet doesn't > capitalize at all... > --94eb2c03326e9f59e4055e301b9c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yeah, I misunderstand your code. Anyway, It should be like= this:

#+BEGIN_SRC python
...
#+END_SRC

<= /div>
#+BEGIN_EXAMPLE
...
#+END_EXAMPLE

etc

[stardiviner]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 <Hack this world!>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG key= ID: 47C32433
IRC(freeenode): stardiviner =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 Twitter:=C2=A0 @numbchild
Key fingerprint =3D 9BAA 92BC CDDD B= 9EF 3B36=C2=A0 CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/

On Thu, Nov 16, 2017 at 12:24 AM, Eric Abrah= amsen <eric@ericabrahamsen.net> wrote:
"numbchild@gmail.com" <numbchild@gmail.com> writes:

> I think the function `org-insert-structure-template' also sho= uld respect the `org-babel-uppercase-example-markers'.
> Besides, your new diff does not have a condition on `org-babel-upperca= se-example-markers', you just use `upcase-initials` by default. Th= en the new `tempo` snippets
> will be uppercase, but the `org-insert-structure-template` insert= ed templates will be different.

I'm not entirely understanding you here -- it is
`org-insert-structure-template' that respects
`org-babel-uppercase-example-markers', not the tempo snippet (whic= h was
an omission). And none of the code is using `upcase-initials'.

As far as I can see, the bug is that EXAMPLE is uppercased but the
"begin" and "end" aren't, and also that the tempo s= nippet doesn't
capitalize at all...

--94eb2c03326e9f59e4055e301b9c--