emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] org-fill-paragraph fills paragraph before selected region
@ 2020-07-13 21:27 Matt Lundin
  2020-07-14  9:47 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Lundin @ 2020-07-13 21:27 UTC (permalink / raw)
  To: emacs-orgmode

When there is an active region, the function org-fill-paragraph does not
limit itself to the active region but also fills the paragraph before
the active region.

Steps to reproduce. Use the following file. Mark the last two entry
paragraphs, beginning at "Lorem" and ending at the end of the buffer
("erat."). Type 'M-q' (org-fill-paragraph).

--8<---------------cut here---------------start------------->8---
* 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 tellus.  Nullam tempus.  Mauris ac felis vel velit tristique imperdiet.  Donec at pede.  Etiam vel neque nec dui dignissim bibendum.  Vivamus id enim.  Phasellus neque orci, porta a, aliquet quis, semper a, massa.  Phasellus purus.  Pellentesque tristique imperdiet tortor.  Nam euismod tellus id erat.

  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 penatibus et magnis dis parturient montes, nascetur ridiculus mus.  Nulla posuere.  Donec vitae dolor.  Nullam tristique diam non turpis.  Cras placerat accumsan nulla.  Nullam rutrum.  Nam vestibulum accumsan nisl.

  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.  Nullam tempus.  Mauris ac felis vel velit tristique imperdiet.  Donec at pede.  Etiam vel neque nec dui dignissim bibendum.  Vivamus id enim.  Phasellus neque orci, porta a, aliquet quis, semper a, massa.  Phasellus purus.  Pellentesque tristique imperdiet tortor.  Nam euismod tellus id erat.
--8<---------------cut here---------------end--------------->8---

This is the result. Note that the first paragraph, which is outside the
selected region, is also filled.

--8<---------------cut here---------------start------------->8---
* 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 tellus.
  Nullam tempus. Mauris ac felis vel velit tristique imperdiet. Donec
  at pede. Etiam vel neque nec dui dignissim bibendum. Vivamus id
  enim. Phasellus neque orci, porta a, aliquet quis, semper a, massa.
  Phasellus purus. Pellentesque tristique imperdiet tortor. Nam
  euismod tellus id erat.

  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 penatibus et magnis dis parturient montes, nascetur
  ridiculus mus. Nulla posuere. Donec vitae dolor. Nullam tristique
  diam non turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam
  vestibulum accumsan nisl.

  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.
  Nullam tempus. Mauris ac felis vel velit tristique imperdiet. Donec
  at pede. Etiam vel neque nec dui dignissim bibendum. Vivamus id
  enim. Phasellus neque orci, porta a, aliquet quis, semper a, massa.
  Phasellus purus. Pellentesque tristique imperdiet tortor. Nam
  euismod tellus id erat.
--8<---------------cut here---------------end--------------->8---

Best,

Matt


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

* Re: [BUG] org-fill-paragraph fills paragraph before selected region
  2020-07-13 21:27 [BUG] org-fill-paragraph fills paragraph before selected region Matt Lundin
@ 2020-07-14  9:47 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2020-07-14  9:47 UTC (permalink / raw)
  To: Matt Lundin; +Cc: emacs-orgmode

Hello,

Matt Lundin <mdl@imapmail.org> writes:

> When there is an active region, the function org-fill-paragraph does not
> limit itself to the active region but also fills the paragraph before
> the active region.
>
> Steps to reproduce. Use the following file. Mark the last two entry
> paragraphs, beginning at "Lorem" and ending at the end of the buffer
> ("erat."). Type 'M-q' (org-fill-paragraph).
>
> --8<---------------cut here---------------start------------->8---
> * 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 tellus.  Nullam tempus.  Mauris ac felis vel velit tristique imperdiet.  Donec at pede.  Etiam vel neque nec dui dignissim bibendum.  Vivamus id enim.  Phasellus neque orci, porta a, aliquet quis, semper a, massa.  Phasellus purus.  Pellentesque tristique imperdiet tortor.  Nam euismod tellus id erat.
>
>   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 penatibus et magnis dis parturient montes, nascetur ridiculus mus.  Nulla posuere.  Donec vitae dolor.  Nullam tristique diam non turpis.  Cras placerat accumsan nulla.  Nullam rutrum.  Nam vestibulum accumsan nisl.
>
>   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.  Nullam tempus.  Mauris ac felis vel velit tristique imperdiet.  Donec at pede.  Etiam vel neque nec dui dignissim bibendum.  Vivamus id enim.  Phasellus neque orci, porta a, aliquet quis, semper a, massa.  Phasellus purus.  Pellentesque tristique imperdiet tortor.  Nam euismod tellus id erat.
> --8<---------------cut here---------------end--------------->8---
>
>
> This is the result. Note that the first paragraph, which is outside the
> selected region, is also filled.

Fixed. Thank you.

Regards,
-- 
Nicolas Goaziou


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

end of thread, other threads:[~2020-07-14  9:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-13 21:27 [BUG] org-fill-paragraph fills paragraph before selected region Matt Lundin
2020-07-14  9:47 ` Nicolas Goaziou

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