emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] Org-tempo doesn't respect indentation [9.7.11]
@ 2025-01-03 23:12 the_wurfkreuz via General discussions about Org-mode.
  2025-01-04 13:42 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: the_wurfkreuz via General discussions about Org-mode. @ 2025-01-03 23:12 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 807 bytes --]

If i have some list:

1. oariseatnoarise ntoaris en
2. aoirsetnaorisetnoarisetn
Then from the end of the second item use org-return, the pointer position is going to be indented like this:

1. oariseatnoarise ntoaris en
2. aoirsetnaorisetnoarisetn
<--- pointer here

Then if i try to expand an org tempo template using org-cycle:

1. oariseatnoarise ntoaris en
2. aoirsetnaorisetnoarisetn <se

The pointer will end up here:

1. oariseatnoarise ntoaris en
2. aoirsetnaorisetnoarisetn
#+begin_src emacs-lisp
<--- pointer #+end_src

I expect it to be here:

1. oariseatnoarise ntoaris en
2. aoirsetnaorisetnoarisetn
#+begin_src emacs-lisp
<--- pointer #+end_src

Emacs : GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.0)
of 2025-01-02
Package: Org mode version 9.7.11

[-- Attachment #2: Type: text/html, Size: 2341 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [BUG] Org-tempo doesn't respect indentation [9.7.11]
  2025-01-03 23:12 [BUG] Org-tempo doesn't respect indentation [9.7.11] the_wurfkreuz via General discussions about Org-mode.
@ 2025-01-04 13:42 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2025-01-04 13:42 UTC (permalink / raw)
  To: the_wurfkreuz; +Cc: emacs-orgmode@gnu.org

<emacs-orgmode@gnu.org> writes:
the_wurfkreuz via "General discussions about Org-mode."

> 1. oariseatnoarise ntoaris en
> 2. aoirsetnaorisetnoarisetn
> Then from the end of the second item use org-return, the pointer position is going to be indented like this:
>
> 1. oariseatnoarise ntoaris en
> 2. aoirsetnaorisetnoarisetn
> <--- pointer here
>
> Then if i try to expand an org tempo template using org-cycle:
> ...

Confirmed.
We can indent line while expanding tempo template, but that will not
indent according to src block because src block is not yet complete in
the middle of template expansion.
I am not really sure how we can solve this.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-01-04 13:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-03 23:12 [BUG] Org-tempo doesn't respect indentation [9.7.11] the_wurfkreuz via General discussions about Org-mode.
2025-01-04 13:42 ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).