emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug (with fix): org-tempo-add-block incorrectly inserts comma before


From: Bastien
Subject: Re: Bug (with fix): org-tempo-add-block incorrectly inserts comma before next `#+begin_src' during expansion [9.3.2 (9.3.2-8-g47b104-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20200127/)]
Date: Mon, 03 Feb 2020 18:33:10 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Hi Bram,

Bram Adams <address@hidden> writes:

> I applied the commit, but still encounter the same issue, unless I
> disable `org-src-tab-acts-natively’ or remove ‘> in the org-tempo
> macro.

Yes, you're right, my fix was wrong - I've followed your indication
and removed the second occurrence of '>.

What happens is this: the template expansion calls org-edit-src-code
which gets the wrong source block boundaries, thus escaping "#+begin"
with a comma.

Looking at the second '>, I think there is no need for it here (it
means: "indent the line"), so we're safe removing it without touching
`org-edit-src-code' for now.

I still think org-edit-src-code should only be called interactively,
not through internal calls.  I'll see if this needs to be fixed too.

Best,

-- 
 Bastien



reply via email to

[Prev in Thread] Current Thread [Next in Thread]