all messages for Emacs-related lists mirrored at yhetil.org
 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

* Re: [BUG] org-fill-paragraph for region [9.6.15]
  2024-07-25 15:51 [BUG] org-fill-paragraph for region [9.6.15] Seungki Kim
@ 2024-08-04 18:21 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2024-08-04 18:21 UTC (permalink / raw)
  To: Seungki Kim; +Cc: emacs-orgmode

Seungki Kim <tttuuu888@gmail.com> writes:

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

In Org 9.7, it will be

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

Please note that indentation is significant in lists, so your original
example is _not_ a single paragraph:

* testA
- test1 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed
  do eiusmod<end-of-list-item>
<beginning of next paragraph>tempor incididunt ut labore et dolore magna aliqua.

> Additionally, if I add line-break(\\) at the end of test1, it works fine.

With Org 9.7 and \\, you will get

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

Hope it makes sense.

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