From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.bugs Subject: bug#29767: 26.0.90; Failing auto-fill in message-mode because of bad state (comment-skip-end) Date: Wed, 20 Dec 2017 16:25:37 +0900 Organization: Emacsen advocacy group Message-ID: References: <87ind3zqf2.fsf@imladris> <87shc7rl35.fsf@web.de> <838tdypuaw.fsf@gnu.org> <876092fd14.fsf@imladris> <87y3lydwk6.fsf@imladris> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1513754670 1422 195.159.176.226 (20 Dec 2017 07:24:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 20 Dec 2017 07:24:30 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (i686-pc-cygwin) Cc: Michael Heerdegen , 29767@debbugs.gnu.org To: Jose A. Ortega Ruiz Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 20 08:24:26 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRYjp-0008Cj-Q0 for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Dec 2017 08:24:26 +0100 Original-Received: from localhost ([::1]:37206 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRYlm-0002Yh-7Y for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Dec 2017 02:26:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRYlY-0002X3-CV for bug-gnu-emacs@gnu.org; Wed, 20 Dec 2017 02:26:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRYlO-0001kh-O0 for bug-gnu-emacs@gnu.org; Wed, 20 Dec 2017 02:26:12 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34374) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eRYlO-0001k6-Eb for bug-gnu-emacs@gnu.org; Wed, 20 Dec 2017 02:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eRYlO-00007H-1u for bug-gnu-emacs@gnu.org; Wed, 20 Dec 2017 02:26:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87ind3zqf2.fsf@imladris> Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Dec 2017 07:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29767 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29767-submit@debbugs.gnu.org id=B29767.1513754749427 (code B ref 29767); Wed, 20 Dec 2017 07:26:01 +0000 Original-Received: (at 29767) by debbugs.gnu.org; 20 Dec 2017 07:25:49 +0000 Original-Received: from localhost ([127.0.0.1]:43055 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRYlB-00006o-88 for submit@debbugs.gnu.org; Wed, 20 Dec 2017 02:25:49 -0500 Original-Received: from mail-hampton.hostforweb.net ([205.234.186.191]:56389 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRYl9-00006c-T2 for 29767@debbugs.gnu.org; Wed, 20 Dec 2017 02:25:48 -0500 Original-Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89) (envelope-from ) id 1eRYl1-000PFp-0p; Wed, 20 Dec 2017 01:25:39 -0600 X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( Cancel-Lock: sha1:x0r9bnD83wJfClmK1u6gnDK0rms= X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: authenticated_id: yamaoka/from_h X-Authenticated-Sender: hampton.hostforweb.net: yamaoka@jpl.org X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:141282 Archived-At: --=-=-= Hi Jose, On Wed, 20 Dec 2017 02:20:41 +0100, Jose A. Ortega Ruiz wrote: > so i guess we must be doing something different, Well, does evaluating this snippet in the message-mode buffer fix your problem? (setq paragraph-separate (default-value 'paragraph-separate)) ...[1] As for me, I found the cause is that message-mode modifies its value in a message-mode buffer locally so as to have the value of `message-cite-prefix-regexp' (containing ">", etc.). It makes the paragraph commands, `M-{', `M-}', etc. work conveniently in the message-mode. However, it also seems to affect the auto-fill command undesirably. A patch is below. But if [1] does not fix your problem, try evaluating the next one before composing a message-mode buffer: (fset 'message-setup-fill-variables 'ignore) ...[2] If it does the trick, a cause should be something done in the `message-setup-fill-variables' function. It will probably be easy to find the culprit by the brute force method (actually I did it -- commenting forms one by one in the function). [1] To restore its value, eval (setq paragraph-separate paragraph-start) in the message-mode buffer. [2] To restore it, do: M-x load-library RET message RET --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- message.el~ 2017-12-17 22:00:18.943355400 +0000 +++ message.el 2017-12-20 07:21:00.211760400 +0000 @@ -3441,7 +3441,8 @@ (defun message-do-auto-fill () "Like `do-auto-fill', but don't fill in message header." (unless (message-point-in-header-p) - (do-auto-fill))) + (let ((paragraph-separate (default-value 'paragraph-separate))) + (do-auto-fill)))) (defun message-insert-signature (&optional force) "Insert a signature. See documentation for variable `message-signature'." --=-=-=--