[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: org-tempo question
From: |
Jeremie Juste |
Subject: |
Re: org-tempo question |
Date: |
Thu, 24 Sep 2020 20:18:04 +0200 |
Hello Nick,
Thanks for the feedback. I'm not sure I understand your setting
entirely. I have reproduced the behaviour of tempo
inside an org src block below. I don't have any comma before the
source block expansion unless I type it.
Any character except space or tab on the line of the expansion
destroys it. For example item 2 below. I have noted that the example block
on item 3 doesn not expand at all (item 3). My normal usage is
generally the item 1 case and I get the expected behavior.
#+BEGIN_SRC org
* heading 1 (cursor position)
<s
- item 1
<e
- item 2
, <s
- item 3
, <e
* heading 1 (expansion)
#+BEGIN_SRC R
#+end_src
- item 1
#+begin_example
#+end_example
- item 2
, #+BEGIN_SRC
#+end_src
- item 3
, <e
#+end_src
HTH,
Jeremie
- GNU Emacs 28.0.50
- Org mode version 9.4
Nick Dokos <ndokos@gmail.com> writes:
> I can't say anything about indentation (I encounter problems that I
> have not reported because of lack of time to investigate combined with
> laziness - but I suspect they are, partly at least, of my own making).
>
> But when I do `<e TAB' inside a block, I get a properly quoted (though
> badly indented) example block, with commas before the #+begin and the
> #+end_example lines - OTOH, `<e TAB' outside a block gives me a
> no-indent example block even if I have spaces before the `<e' - if I
> have printable charactes before the `<e', it does not get expanded:
>
> #+NAME: third
> #+begin_src org
>
> - an item
> - subitem
>
> ,#+begin_example
>
> ,#+end_example
>
> #+end_src
>
> #+begin_example
>
> #+end_example
>
>
> The commas are important: are you not getting them?