Recipe: 1. emacs -Q 2. Execute the following lisp code:
(setq org-src-tab-acts-natively t) (require 'org-tempo) (push (cons "el" "src emacs-lisp") org-structure-template-alist) 3. Create the following org file: <point> #+begin_src emacs-lisp #+end_src 4. Put the point before the code block 5.1. Type <s TAB Observed behaviour: #+begin_src #+begin_src emacs-lisp #+end_src Expected behaviour: #+begin_src #+end_src #+begin_src emacs-lisp #+end_src 5.2. Type <el TAB Observed behaviour: #+begin_src emacs-lisp #+end_src ,#+begin_src emacs-lisp #+end_src Expected behaviour: #+begin_src emacs-lisp #+end_src #+begin_src emacs-lisp #+end_src Setting org-src-tab-acts-natively to nil makes org-mode behave normally. Emacs : GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0) of 2019-12-17 Package: Org mode version 9.3 (release_9.3 @ /home/yantar92/.emacs.d/straight/build/org/)