unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Ryan Kavanagh <rak@rak.ac>
To: help-gnu-emacs@gnu.org
Subject: Unexpected fill-paragraph behaviour in message-mode
Date: Sun, 12 Feb 2023 20:11:32 -0500	[thread overview]
Message-ID: <87r0uu2wu3.fsf@rak.ac> (raw)


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.



             reply	other threads:[~2023-02-13  1:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-13  1:11 Ryan Kavanagh [this message]
2023-02-13 13:35 ` Unexpected fill-paragraph behaviour in message-mode 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

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.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r0uu2wu3.fsf@rak.ac \
    --to=rak@rak.ac \
    --cc=help-gnu-emacs@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.
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).