From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jesse Sheidlower Newsgroups: gmane.emacs.bugs Subject: bug#7987: 23.2; Refill error in message-mode Date: Tue, 8 Feb 2011 10:44:19 -0500 Message-ID: <20110208154418.GL22848@panix.com> References: <8lr5bj60dx.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1297181229 15133 80.91.229.12 (8 Feb 2011 16:07:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 Feb 2011 16:07:09 +0000 (UTC) Cc: 7987@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 08 17:07:05 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pmq5m-0002JJ-AU for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Feb 2011 17:07:02 +0100 Original-Received: from localhost ([127.0.0.1]:52741 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pmq5l-00061T-FH for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Feb 2011 11:07:01 -0500 Original-Received: from [140.186.70.92] (port=44940 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pmq4t-0005P6-HN for bug-gnu-emacs@gnu.org; Tue, 08 Feb 2011 11:06:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pmq4r-00030W-3x for bug-gnu-emacs@gnu.org; Tue, 08 Feb 2011 11:06:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pmq4q-00030S-UT for bug-gnu-emacs@gnu.org; Tue, 08 Feb 2011 11:06:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Pmpbl-0001Bz-NE; Tue, 08 Feb 2011 10:36:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jesse Sheidlower Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Feb 2011 15:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7987 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7987-submit@debbugs.gnu.org id=B7987.12971793394555 (code B ref 7987); Tue, 08 Feb 2011 15:36:01 +0000 Original-Received: (at 7987) by debbugs.gnu.org; 8 Feb 2011 15:35:39 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PmpbP-0001BQ-11 for submit@debbugs.gnu.org; Tue, 08 Feb 2011 10:35:39 -0500 Original-Received: from mail2.panix.com ([166.84.1.73]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PmpbM-0001BE-Uh for 7987@debbugs.gnu.org; Tue, 08 Feb 2011 10:35:37 -0500 Original-Received: from panix3.panix.com (panix3.panix.com [166.84.1.3]) by mail2.panix.com (Postfix) with ESMTP id EE6E438E42; Tue, 8 Feb 2011 10:44:18 -0500 (EST) Original-Received: by panix3.panix.com (Postfix, from userid 834) id 0B6188FDDE; Tue, 8 Feb 2011 10:44:19 -0500 (EST) Content-Disposition: inline In-Reply-To: <8lr5bj60dx.fsf@fencepost.gnu.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 08 Feb 2011 10:36:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:43997 Archived-At: On Mon, Feb 07, 2011 at 03:43:54PM -0500, Glenn Morris wrote: > Jesse Sheidlower wrote: > > > $ emacs -Q > > M-x message-mode > > (type or paste the following text, not including dashes): > > > > --- > > I read with great interest your text, the "Declaration of Independence," > > and I was particularly taken with the introduction: > > > > When in the Course of human events it becomes necessary for one people > > to dissolve the > > political bands which have connected them with another > > and to assume among the powers of the earth, the separate > > and equal > > station to which the Laws of Nature and of Nature's God entitle them, > > a decent respect to the opinions of mankind requires > > that they should > > declare the causes which impel them to the separation. > > > > I do think this is one of my favorite passages. Thank you. > > --- > > > > Position point anywhere in the indented section, and type M-q. The text > > will be refilled such that there's no space before or after the indented > > paragraph, the first line of the indented paragraph will be indented > > four spaces, and the second and subsequent lines should be indented > > eight spaces. > > This is an artificial example because it is not how a mail buffer > normally looks. The message filling code does different things in the > header and in the body of an email. Since your example does not contain > `mail-header-separator', message thinks it is in the header and fills > accordingly. If you insert `mail-header-separator' at the start of your > example buffer, message fills the paragraph correctly. > > Do you have an example of an actual mail composition buffer where the > message filling code does the wrong thing? Hmm. I guess you're right, although this behavior doesn't seem to be mentioned in the Manual. I'm using message-mode with Mutt, so there are no headers in the buffer. The EmacsWiki page on MuttInEmacs does give a code sample (apparently problematic, as there are various kludgy-looking updates) that 'sets mail-header-separator to "" for M-q and auto-fill to work correctly', so the fact that it doesn't normally "work correctly" does seem to be known behavior. But for what it's worth, one of the Emacs maintainers did look this over and think it was a bug, so I'm not the only one confused. I'll experiment further and will update if necessary. Is there a preferred way to tell message-mode to assume that the buffer is a message body, rather than a header? Thanks for the reply. Jesse Sheidlower