From: Phil Estival <pe@7d.nz>
To: emacs-orgmode@gnu.org
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 [thread overview]
Message-ID: <844ea872-5129-1914-7778-6693529938f9@7d.nz> (raw)
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
next reply other threads:[~2022-06-07 19:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-07 19:43 Phil Estival [this message]
2022-07-17 13:22 ` [bug] org-list-struct-apply-struct: insert an item in the end of a list Ihor Radchenko
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=844ea872-5129-1914-7778-6693529938f9@7d.nz \
--to=pe@7d.nz \
--cc=emacs-orgmode@gnu.org \
/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).