From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Berry, Charles" Subject: Re: Bug: org-tempo expansion comments out the following src block when org-src-tabs-natively is 't [9.3 (release_9.3 @ /home/yantar92/.emacs.d/straight/build/org/)] Date: Thu, 19 Dec 2019 01:15:43 +0000 Message-ID: <1FDF2AC8-7B81-4D31-A422-BD36F333CA49@ucsd.edu> References: <87immdn5n4.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:59430) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihkQB-0005B3-4L for emacs-orgmode@gnu.org; Wed, 18 Dec 2019 20:16:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ihkQ9-00059u-Cl for emacs-orgmode@gnu.org; Wed, 18 Dec 2019 20:16:06 -0500 Received: from mx0a-00395d01.pphosted.com ([148.163.133.170]:18866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ihkQ8-000580-LN for emacs-orgmode@gnu.org; Wed, 18 Dec 2019 20:16:05 -0500 In-Reply-To: <87immdn5n4.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> Content-Language: en-US Content-ID: <6DDB4FDE46FD7E4EB3C93C83F8CE5288@AD.UCSD.EDU> 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: Ihor Radchenko Cc: "emacs-orgmode@gnu.org" > On Dec 18, 2019, at 5:07 AM, Ihor Radchenko wrote: >=20 > Recipe: >=20 > 1. emacs -Q > 2. Execute the following lisp code: >=20 > (setq org-src-tab-acts-natively t) > (require 'org-tempo) I did not need to add this line to confirm the behavior: > (push (cons "el" "src emacs-lisp") org-structure-template-alist) >=20 > 3. Create the following org file: >=20 > >=20 > #+begin_src emacs-lisp > #+end_src >=20 > 4. Put the point before the code block >=20 > 5.1. Type =20 > Observed behaviour: >=20 > #+begin_src=20 >=20 >=20 > #+begin_src emacs-lisp > #+end_src >=20 Right. The issue seems to be that `org-tempo-add-block' puts `>' elements = in its recipe for converting `org-structure-template-alist' to `tempo-org-= template-*' values. Those are innocuous when `org-src-tab-acts-natively' is nil. But when `org-src-tab-acts-natively' is `t', an attempt is made to indent w= ithin the src block, which I guess is where the trouble lies as an error oc= curs which prevents the remainder of the template from being inserted. If you really need `