From: Ihor Radchenko <yantar92@posteo.net>
To: Phil <pe@7d.nz>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG] unexpected behaviour on sub-list
Date: Thu, 11 Jul 2024 07:17:18 +0000 [thread overview]
Message-ID: <87y1681jpd.fsf@localhost> (raw)
In-Reply-To: <827fe3aa-ddcc-45a1-b4cb-e22312020b22@7d.nz>
Phil <pe@7d.nz> writes:
> 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.
Confirmed.
Potentially a duplicate of https://list.orgmode.org/orgmode/v3up5d$oc4$1@ciao.gmane.io/
> 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
Thanks for looking into the causes!
I will look closer into this later.
--
Ihor Radchenko // yantar92,
Org mode contributor,
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>
prev parent reply other threads:[~2024-07-11 7:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-11 6:33 [BUG] unexpected behaviour on sub-list Phil
2024-07-11 7:17 ` Ihor Radchenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y1681jpd.fsf@localhost \
--to=yantar92@posteo.net \
--cc=emacs-orgmode@gnu.org \
--cc=pe@7d.nz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).