emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Miquel" <sebastien.miquel@posteo.eu>
To: Renato Ferreira <renatofdds@gmail.com>,
	emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: [PATCH] lisp/org.el: Fix `org-fill-paragraph' in lists when `mark-active'
Date: Tue, 31 May 2022 13:51:16 +0000	[thread overview]
Message-ID: <823b6f81-3538-141c-584b-e4b8ca4fedb0@posteo.eu> (raw)
In-Reply-To: <878rqhx3xu.fsf@gmail.com>

Hi,

Renato Ferreira writes:
> I stumbled upon a bug introduced by it: filling lists with active region.
>
> # MRE:
>
> Go to start of list, `org-mark-element`, then `org-fill-paragraph`. The first item does not get filled.
>
> ```org
> * This is a test
>
> - Aliquam erat volutpat.  Nunc eleifend leo vitae magna.  In id erat non orci commodo lobortis.  Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus.  Sed diam.  Praesent fermentum tempor.
> - Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit tempor tellus.  Donec pretium posuere tellus. Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus. Cum sociis natoque.
> - Aliquam erat volutpat.  Nunc eleifend leo vitae magna.  In id erat non orci commodo lobortis.  Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus.  Sed diam.  Praesent fermentum tempor tellus.
> ```
See also
https://list.orgmode.org/041ca43d-2efb-db1e-76ab-7c15af088650@posteo.eu/
where I submitted a different patch that fixes this issue (I think) and
a couple of others.

Regards,

-- 
Sébastien Miquel



  reply	other threads:[~2022-05-31 13:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-31 11:53 [PATCH] lisp/org.el: Fix `org-fill-paragraph' in lists when `mark-active' Renato Ferreira
2022-05-31 12:49 ` Renato Ferreira
2022-05-31 13:51   ` Sébastien Miquel [this message]
2022-07-19 19:36   ` Sébastien Miquel
2022-07-20 21:13     ` Renato Ferreira

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=823b6f81-3538-141c-584b-e4b8ca4fedb0@posteo.eu \
    --to=sebastien.miquel@posteo.eu \
    --cc=emacs-orgmode@gnu.org \
    --cc=renatofdds@gmail.com \
    /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).