From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Jose A. Ortega Ruiz" 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 18:04:28 +0100 Message-ID: <874lole3fn.fsf@imladris> 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: text/plain X-Trace: blaine.gmane.org 1513789412 9055 195.159.176.226 (20 Dec 2017 17:03:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 20 Dec 2017 17:03:32 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: Michael Heerdegen , 29767@debbugs.gnu.org To: Katsumi Yamaoka Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 20 18:03:27 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 1eRhm9-0001pP-41 for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Dec 2017 18:03:25 +0100 Original-Received: from localhost ([::1]:59819 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRho7-0000Qq-7g for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Dec 2017 12:05:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRhnr-0000Ki-9x for bug-gnu-emacs@gnu.org; Wed, 20 Dec 2017 12:05:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRhni-0007hr-WB for bug-gnu-emacs@gnu.org; Wed, 20 Dec 2017 12:05:11 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35994) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eRhni-0007hR-Se for bug-gnu-emacs@gnu.org; Wed, 20 Dec 2017 12:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eRhni-0007O8-Gl for bug-gnu-emacs@gnu.org; Wed, 20 Dec 2017 12:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Jose A. Ortega Ruiz" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Dec 2017 17:05:02 +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.151378947928366 (code B ref 29767); Wed, 20 Dec 2017 17:05:02 +0000 Original-Received: (at 29767) by debbugs.gnu.org; 20 Dec 2017 17:04:39 +0000 Original-Received: from localhost ([127.0.0.1]:44675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRhnL-0007NS-Fu for submit@debbugs.gnu.org; Wed, 20 Dec 2017 12:04:39 -0500 Original-Received: from mail-wr0-f182.google.com ([209.85.128.182]:40239) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRhnJ-0007NC-PE for 29767@debbugs.gnu.org; Wed, 20 Dec 2017 12:04:38 -0500 Original-Received: by mail-wr0-f182.google.com with SMTP id q9so22894633wre.7 for <29767@debbugs.gnu.org>; Wed, 20 Dec 2017 09:04:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version; bh=y1JDsWcytHo37gPWDYU5MAeZePxrQXD4+Km8anVTS9I=; b=YPgpQFuptLU7sxF9g2b+c9Z3bjXwyHqKRUvHLhv4GG84cO0vCapDRgJ3Zvc6Tc/Eq4 Na2chBzgyKGkVu++T7GObKysvInEaZtIGNKU9Cp/rFj9cdYimaOrpVJu12UQxHYNaqG0 gJs7kHTwrwqIfuMWXRlhK1AB/nNSrDxdKVtsoGuDg4gGVYPg/3z1Cfks+5BExM1imHyf TwtpHtrHNGVIeM4aqPp0oHnQM0jH8rDftivJiEOjz4YyR8l+wVCLxBU7KzOMT6iCGNF0 2bFhLDLxcmMoosZPGWtx7mwVqmC9d8O+8ACAhWCUYtXypR5aHZORTd8G1hna5yIN5PoL bhcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version; bh=y1JDsWcytHo37gPWDYU5MAeZePxrQXD4+Km8anVTS9I=; b=fJqj2pnIuJerzlgwu88dfcjqC/yxXMsmqksjoKDDLn3XUaWaHaoep1p4c+hm1FNFt/ CMB6j/mWYZ4xA5EO2Op9KzhNRc9O/r9zN+5hCX8M8mNTJ90L0MsdJq2KrUTLLKPiig0s 06uiuGrAmJ0BOj+xL/I4AKwKRZpq0ih/ipSuYbttpBi2OE2uCbLJtLby32Iz5PDCKwxC D+aGC3Ex9ePY3UjeQ27mKQ8GmYtQTcWrb/yXUEg325+LjD1ZVcdHRhQHQx6/f4ceSUd0 iui0L9+CgOqfOHUc46+TbL6Fzu+J03kvYN7izOMIefb72p+B+OoSK2H+bPq2d+GZW6nF 7JjQ== X-Gm-Message-State: AKGB3mKyrYtlpCzyUZJM+hPQG9PBykOMpis7MY5fM+FbDffiVi7N1R6C bfkTBVtCDXVCF/Q5k4cW8TvoTg== X-Google-Smtp-Source: ACJfBovaCa/wSlAvrGWWeGw6/ytDNfR9U57raPzxUcZ2idGCU97vPqrgTTod7mDqpi8xG1wwGZ3YMQ== X-Received: by 10.223.186.67 with SMTP id t3mr8530980wrg.276.1513789471591; Wed, 20 Dec 2017 09:04:31 -0800 (PST) Original-Received: from imladris.local (115.24.135.37.dynamic.jazztel.es. [37.135.24.115]) by smtp.gmail.com with ESMTPSA id r68sm7330294wmd.47.2017.12.20.09.04.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Dec 2017 09:04:30 -0800 (PST) Original-Received: from imladris (localhost [127.0.0.1]) by imladris.local (Postfix) with ESMTPS id D14CD320D72; Wed, 20 Dec 2017 18:04:28 +0100 (CET) In-Reply-To: (Katsumi Yamaoka's message of "Wed, 20 Dec 2017 16:25:37 +0900") X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: 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:141302 Archived-At: On Wed, Dec 20 2017, Katsumi Yamaoka wrote: > 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] okay, i will absolutely try the next time the bug is triggered by some mail... so far, this one is working fine :) > 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. in my case, the value of message-cite-prefix-regexp does not coincide with that of paragraph-separate (the latter is much longer, and includes also things like header and multipart separators) ... but then, i'm checking these variables in *this* buffer, in which the problem is not happening...). > 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. yes, that was also the function that i was suspecting, although i got > the impression ... ah! here we have the problem happening. i've set paragraph-separate to > the suggested value, but that isn't fixing the problem either, as you > can see... jao -- If all else fails read the instructions. - Donald Knuth