unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Unexpected fill-paragraph behaviour in message-mode
@ 2023-02-13  1:11 Ryan Kavanagh
  2023-02-13 13:35 ` Eli Zaretskii
  2023-02-15 17:02 ` Stefan Monnier via Users list for the GNU Emacs text editor
  0 siblings, 2 replies; 11+ messages in thread
From: Ryan Kavanagh @ 2023-02-13  1:11 UTC (permalink / raw)
  To: help-gnu-emacs


Hi,

I am encountering unexpected behaviour when trying to fill paragraphs in
message-mode. In particular, fill-paragraph joins paragraphs (despite
separating new lines) or inserts unwanted tabs. How can I make
fill-paragraph behave as in other text modes?

Below is a small working example for emacs 28.2 that works when loaded
with `emacs -Q`.

Thanks,
Ryan

---------------------------------
From:
To:
Cc:
Bcc:
Subject: Weird fill-paragraph behaviour
Reply-To:

Emacs has weird wrapping behaviour in message mode. To reproduce,
first (M-x message-mode).

Filling this long line (M-q anywhere on it) joins it with the following indented text, which it should not because there is an empty line marking the end of this paragraph:

    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    Sed quis iaculis erat, at placerat ligula.

Moreover, if I have a long line in a paragraph following indented
text, then attempting to fill it (M-q) causes emacs to insert indents.
Indeed, place your cursor anywhere on the following line, and then hit M-q
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris a massa pulvinar, lobortis massa at, viverra massa. Suspendisse fringilla malesuada erat. Curabitur eu dui lorem. Aenean tincidunt, leo eget tincidunt tincidunt, urna leo mattis eros, in vestibulum mi purus in nibh. Fusce sem elit, vulputate ut tristique a, ornare vitae mi. Quisque sed turpis in metus facilisis mollis et sed augue. Nam vel efficitur erat, id maximus eros. Vestibulum interdum nisl id suscipit sagittis.



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

end of thread, other threads:[~2023-02-15 17:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-13  1:11 Unexpected fill-paragraph behaviour in message-mode Ryan Kavanagh
2023-02-13 13:35 ` Eli Zaretskii
2023-02-13 14:41   ` Ryan Kavanagh
2023-02-13 15:20     ` Teemu Likonen
2023-02-13 15:21     ` Eli Zaretskii
2023-02-14 12:54       ` Ryan Kavanagh
2023-02-14 13:24         ` Jean Louis
2023-02-15  2:21           ` Emanuel Berg
2023-02-15 17:06           ` Stefan Monnier via Users list for the GNU Emacs text editor
2023-02-13 19:07     ` Jean Louis
2023-02-15 17:02 ` Stefan Monnier via Users list for the GNU Emacs text editor

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