* [bug] org-list-struct-apply-struct: insert an item in the end of a list
@ 2022-06-07 19:43 Phil Estival
2022-07-17 13:22 ` Ihor Radchenko
0 siblings, 1 reply; 2+ messages in thread
From: Phil Estival @ 2022-06-07 19:43 UTC (permalink / raw)
To: emacs-orgmode
Hi there
- A nasty bug when inserting an item in a list
in last position (org 9.5.3-g69c588):
- here is a list
with a sub list
- like here ;
and then text
x
1) when trying to insert an item in the list
above, by suppressing the "x", and hitting
M-RET, if there's no text after (like this one)
the command gets stuck in
org-list-struct-apply-struct
org-list.el::1932
#+begin_src elisp
(while (< (point) down)
;; should probably check if forward line returns 0
;; otherwise will keep looping. Something like:
;; (while (and ( < (point) down) (not(> lines-left-to-move 0)))
#+end_src
org-list.el::1946
#+begin_src
(forward-line)))
;; (setq lines-left-to-move (forward-line)))))
#+end_src
2) after a break, C-g, or immediately when there no
text following, text gets destroyed (much
possibly), the list's structure is
disorganized and the next paragraph too.
Good luck,
Phil
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-17 13:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-07 19:43 [bug] org-list-struct-apply-struct: insert an item in the end of a list Phil Estival
2022-07-17 13:22 ` Ihor Radchenko
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.