emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] unexpected behaviour on sub-list
@ 2024-07-11  6:33 Phil
  2024-07-11  7:17 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Phil @ 2024-07-11  6:33 UTC (permalink / raw)
  To: emacs-orgmode

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


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

end of thread, other threads:[~2024-07-11  7:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-11  6:33 [BUG] unexpected behaviour on sub-list Phil
2024-07-11  7:17 ` 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).