From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ryan Kavanagh Newsgroups: gmane.emacs.help Subject: Unexpected fill-paragraph behaviour in message-mode Date: Sun, 12 Feb 2023 20:11:32 -0500 Message-ID: <87r0uu2wu3.fsf@rak.ac> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22016"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 13 02:12:44 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pRNOd-0005Xd-VJ for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 13 Feb 2023 02:12:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRNNy-0000Pk-He; Sun, 12 Feb 2023 20:12:02 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRNNw-0000PI-4K for help-gnu-emacs@gnu.org; Sun, 12 Feb 2023 20:12:00 -0500 Original-Received: from eos.rak.ac ([207.246.75.217]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRNNu-00084j-FF for help-gnu-emacs@gnu.org; Sun, 12 Feb 2023 20:11:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rak.ac; s=may2018.eos; t=1676250702; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=JFwGsatv6PV8bRU4jBj2/jR31T3TtwGVnUuSQHfyHgg=; b=yGoDKZh81ud4RXZR3u1S0fwNBtkl/5nTVqjrXSjU4bHVlmyWhVx+fH8kFMQ/fgYYMcDCNo xwvJAiQusMCM5NQJOhM1Cx1NMBUWMg0MiGHqiaI1YFOkeMq0YZtGlboY00rzqwc7+9/xyq YNqWxe3dnOxn6b5l7DtF/yOudL32JLP6ao9CWCYiTIzCGySkuOLuQxh9k+hgexQRSWpDIu N51HWXNzL6W1ydzLSWqae/e7ctkJXeN+oQPeQTGYHrptvmztJa4hfoPPFTRcmvHoUfPfwO c5FKa07O0ExOi9aM9PBtpQK7CDYjoDyqT4qoPUEHxt5XtKwmCyKRNBl4tugXig== Original-Received: by eos.rak.ac (OpenSMTPD) with ESMTPSA id 07acb47a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) auth=yes user=asteria for ; Sun, 12 Feb 2023 20:11:41 -0500 (EST) Original-Received: from localhost (asteria.rak.ac [local]) by asteria.rak.ac (OpenSMTPD) with ESMTPA id f83284e3 for ; Mon, 13 Feb 2023 01:11:32 +0000 (UTC) Received-SPF: pass client-ip=207.246.75.217; envelope-from=rak@rak.ac; helo=eos.rak.ac X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142729 Archived-At: 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.