all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [BUG] org-forward-element for plain list item [9.6.15]
@ 2024-08-11 14:22 Seungki Kim
  2024-08-11 16:33 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Seungki Kim @ 2024-08-11 14:22 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 902 bytes --]

Hi ,

I am writing to report a behavior in org-forward-element that I suspect may
be a bug.

When the content of an org file is as follows:

* TestA
- test1
- test2
- test3
- test4
* TestB

If the cursor is at the beginning of the line (at '-') of the items test2,
test3, or test4, org-forward-element works as expected, moving to the next
item.
However, when the cursor is at the beginning of the line of the test1 item,
executing org-forward-element moves the cursor to TestB instead of test2.
The command works correctly when the cursor is in the middle of the line
rather than at the beginning.

Is there something I might be missing?

My Emacs and Org versions are as below:
Emacs  : GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.42, cairo version 1.18.0)
Package: Org mode version 9.6.15 (release_9.6.15 @
/usr/share/emacs/29.4/lisp/org/)

Thank you.

Best regards,
Seungki Kim

[-- Attachment #2: Type: text/html, Size: 1157 bytes --]

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

* Re: [BUG] org-forward-element for plain list item [9.6.15]
  2024-08-11 14:22 [BUG] org-forward-element for plain list item [9.6.15] Seungki Kim
@ 2024-08-11 16:33 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2024-08-11 16:33 UTC (permalink / raw)
  To: Seungki Kim; +Cc: emacs-orgmode

Seungki Kim <tttuuu888@gmail.com> writes:

> When the content of an org file is as follows:
>
> * TestA
> - test1
> - test2
> - test3
> - test4
> * TestB
>
> If the cursor is at the beginning of the line (at '-') of the items test2,
> test3, or test4, org-forward-element works as expected, moving to the next
> item.
> However, when the cursor is at the beginning of the line of the test1 item,
> executing org-forward-element moves the cursor to TestB instead of test2.
> The command works correctly when the cursor is in the middle of the line
> rather than at the beginning.
>
> Is there something I might be missing?

There are two elements at the beginning of "- test1" line:
1. plain list :: all the "testX" entries
2. list item  :: just "- test1"

Org mode selects the outermost element in this scenario - the full plain
list, - and moves to the element following the list, which is your "*
TestB" heading.

Not a bug.
Canceled.

-- 
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>


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

end of thread, other threads:[~2024-08-11 16:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-11 14:22 [BUG] org-forward-element for plain list item [9.6.15] Seungki Kim
2024-08-11 16:33 ` Ihor Radchenko

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.