diff options
author | Bastien <bzg@gnu.org> | 2020-02-03 18:22:55 +0100 |
---|---|---|
committer | Bastien <bzg@gnu.org> | 2020-02-03 18:22:55 +0100 |
commit | 298d6332222258316aaa6b74699127eb97073ce2 (patch) | |
tree | f5e49188a5f1c5925b0bfb69e870cac6c2b8c2fd | |
parent | 77968ce3a33f254a6656da258cae9a0f8f7955bd (diff) | |
download | org-mode-298d6332222258316aaa6b74699127eb97073ce2.tar.gz |
org-tempo.el: Fix bug
* lisp/org-tempo.el (org-tempo-add-block): Remove the '>
element of the template to avoid editing the source block
while inserting it through tempo.
Thanks to Ihor and Bram for reporting this and suggesting
the proper fix.
-rw-r--r-- | lisp/org-tempo.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-tempo.el b/lisp/org-tempo.el index 9ae2700..e6171c7 100644 --- a/lisp/org-tempo.el +++ b/lisp/org-tempo.el @@ -122,7 +122,7 @@ Go through `org-structure-template-alist' and (special (member name '("src" "export")))) (tempo-define-template (format "org-%s" (replace-regexp-in-string " " "-" name)) `(,(format "#+begin_%s%s" name (if special " " "")) - ,(when special 'p) '> n '> ,(unless special 'p) n + ,(when special 'p) '> n ,(unless special 'p) n ,(format "#+end_%s" (car (split-string name " "))) >) key |