emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] org-fill-paragraph for region [9.6.15]
@ 2024-07-25 15:51 Seungki Kim
  2024-08-04 18:21 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Seungki Kim @ 2024-07-25 15:51 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi ,

I would like to report a simple bug that occurred in Org mode.

When the content of Org file is as below,


* testA
- test1
  Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua.


If I run org-fill-paragraph after selecting the entire line starting with
"Lorem ipsum", the result will be as follows.


* testA
- test1 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod
  tempor incididunt ut labore et dolore magna aliqua.


On the other hand, if I change major-mode to text-mode in the same file and
do the same operation (fill-paragraph), the result is as follows.


* testA
- test1
  Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
  tempor incididunt ut labore et dolore magna aliqua.


In this case, I think org-fill-paragraph should work as same as
fill-paragraph in text-mode.

Additionally, if I add line-break(\\) at the end of test1, it works fine.
However, I still think that after selecting a region, it should behave like
fill-paragraph regardless of whether there is a line break in the list
header.

My testing environment is as below.

GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.42, cairo
version 1.18.0)
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: 1622 bytes --]

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

end of thread, other threads:[~2024-08-04 18:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-25 15:51 [BUG] org-fill-paragraph for region [9.6.15] Seungki Kim
2024-08-04 18:21 ` 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).