[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[BUG] unexpected behaviour on sub-list
From: |
Phil |
Subject: |
[BUG] unexpected behaviour on sub-list |
Date: |
Thu, 11 Jul 2024 08:33:54 +0200 |
User-agent: |
Mozilla Thunderbird |
Hello,
I'm reporting this bug on Org mode version 9.7.6.
It was in already in 9.5.
- here is a list
with a sub list
- like here ;
and then text (<- this will be deleted)
x
1) Trying to insert an other item above,
by suppressing the "x", and hitting M-RET,
if there's no text after, the command gets stuck
in org-list-struct-apply-struct.
file:~/.emacs.d/repos/org/lisp/org-list.el::1968
Very likely, needs to check if forward line returns 0
otherwise it will keep looping.
#+begin_src patch
- (while (< (point) down)
+ (while (and ( < (point) down) (not(> lines-left-to-move 0)))
#+end_src
file:~/.emacs.d/repos/org/lisp/org-list.el::1982
#+begin_src patch
- (forward-line)))
+ (setq-local lines-left-to-move (forward-line)))))
#+end_src
2) after a break, C-g, or if there is some text,
the previous paragraph is killed and the list
structure re/dis-organized.
Cheers,
Phil
- [BUG] unexpected behaviour on sub-list,
Phil <=