From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tomas Nordin 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, 03 Jan 2018 17:31:48 +0100 Message-ID: <87vagigayz.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> References: <87ind3zqf2.fsf@imladris> <87shc7rl35.fsf@web.de> <838tdypuaw.fsf@gnu.org> <876092fd14.fsf@imladris> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1514997079 8301 195.159.176.226 (3 Jan 2018 16:31:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 3 Jan 2018 16:31:19 +0000 (UTC) Cc: Michael Heerdegen , 29767@debbugs.gnu.org To: Jose Antonio Ortega Ruiz , Katsumi Yamaoka Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 03 17:31:14 2018 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 1eWlwg-0001lu-2A for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Jan 2018 17:31:14 +0100 Original-Received: from localhost ([::1]:57332 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWlyd-0002X1-DL for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Jan 2018 11:33:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWlyW-0002Wl-BU for bug-gnu-emacs@gnu.org; Wed, 03 Jan 2018 11:33:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eWlyR-0003tb-E3 for bug-gnu-emacs@gnu.org; Wed, 03 Jan 2018 11:33:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54095) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eWlyR-0003tH-A5 for bug-gnu-emacs@gnu.org; Wed, 03 Jan 2018 11:33:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eWlyQ-0004y8-RG for bug-gnu-emacs@gnu.org; Wed, 03 Jan 2018 11:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tomas Nordin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Jan 2018 16:33: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.151499712119009 (code B ref 29767); Wed, 03 Jan 2018 16:33:01 +0000 Original-Received: (at 29767) by debbugs.gnu.org; 3 Jan 2018 16:32:01 +0000 Original-Received: from localhost ([127.0.0.1]:34543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWlxR-0004wR-CT for submit@debbugs.gnu.org; Wed, 03 Jan 2018 11:32:01 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:39503) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWlxP-0004wE-RR for 29767@debbugs.gnu.org; Wed, 03 Jan 2018 11:32:00 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 86EB420F5D for <29767@debbugs.gnu.org>; Wed, 3 Jan 2018 17:31:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1514997113; bh=xH18ImHP5l0Dos+u5qPcn1C0Rol5GkYlj/LfZ9O4SQ8=; h=From:To:Cc:Subject:Date:From; b=nLyTLY2sOxAJDcIJw5DN08jqkGA7FrI1FXlrHPP4i784rQWvyjBbryEI1HLgLDL4P Wyq6568NI357tWMJR0ULRhdlO8bAVbe7+fII+RpBItyrch7oRT03g96EmmhYn6IhFa DR+gZkwNNFTsXVImKNhOificbmnYgFu0lVrfBqSYCv8ubkCdnJ+Gj+22yLxn/4mwXx oZmIwY9kaEvCJbMiYRXSlvReVJYO6X1vAGNw1cYTi2+vgq2ECiafXKvf4vg4QGm7AY ozn8CKaynn1eFomosgQjgwK+K8d7wnzQ39Z1fmQwWzzd9aNvbeAl7QL+5A9fJbJug0 qxH68g6blC/vg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3zBbzq0LZzz9rxQ; Wed, 3 Jan 2018 17:31:50 +0100 (CET) In-Reply-To: <876092fd14.fsf@imladris> 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:141750 Archived-At: Jose Antonio Ortega Ruiz writes: > not for me. i am answering here with a long line, and the two quoted > lines above don't trigger the bug on my side. here you see the lines > that was auto-filled without any extra >. I have been experimenting with this, debugging with debugger. An early function called is do-auto-fill. In the process at some point later, the function comment-beginning is called to determine if we are in a comment or not. If it returns nil, there will be no problems, when it returns a value there will be problems. In that case point is also moved to the place above the text where the comment syntax is picked (or prefix if you want). I have been in reply buffers where there is no problem and then in reply buffers where there is problem. But also in a buffer where there was this problem in the bottom of the buffer but not in the mid of the buffer. Anyhow, I claim that if you eval (comment-beginning) with point close to the break point and it returns nil, there will be no problem. Else, a value is returned and point will move back in the buffer and there will be problems when filling. No fix here but just adding in the hope it could be of any use. Regards -- Tomas