[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug] org-list-struct-apply-struct: insert an item in the end of a list
From: |
Phil Estival |
Subject: |
[bug] org-list-struct-apply-struct: insert an item in the end of a list |
Date: |
Tue, 7 Jun 2022 21:43:59 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug] org-list-struct-apply-struct: insert an item in the end of a list,
Phil Estival <=