emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Seungki Kim <tttuuu888@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [BUG] org-fill-paragraph for region [9.6.15]
Date: Fri, 26 Jul 2024 00:51:23 +0900	[thread overview]
Message-ID: <CAKYNWwSneJOq5STT1dpJvsqBTNgFZCYhwEkn9ruVTSeeppTe8Q@mail.gmail.com> (raw)

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

             reply	other threads:[~2024-07-31 12:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-25 15:51 Seungki Kim [this message]
2024-08-04 18:21 ` [BUG] org-fill-paragraph for region [9.6.15] 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=CAKYNWwSneJOq5STT1dpJvsqBTNgFZCYhwEkn9ruVTSeeppTe8Q@mail.gmail.com \
    --to=tttuuu888@gmail.com \
    --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).