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: Thu, 04 Jan 2018 20:52:04 +0100 Message-ID: <87fu7lflln.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> <87vagigayz.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1515095481 13503 195.159.176.226 (4 Jan 2018 19:51:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 4 Jan 2018 19:51:21 +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 Thu Jan 04 20:51:17 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 1eXBXm-0002xT-M8 for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Jan 2018 20:51:14 +0100 Original-Received: from localhost ([::1]:37092 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXBZk-00036N-Aw for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Jan 2018 14:53:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48013) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXBZa-00034X-9v for bug-gnu-emacs@gnu.org; Thu, 04 Jan 2018 14:53:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eXBZX-0000Vw-2j for bug-gnu-emacs@gnu.org; Thu, 04 Jan 2018 14:53:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55573) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eXBZW-0000VD-Us for bug-gnu-emacs@gnu.org; Thu, 04 Jan 2018 14:53:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eXBZW-00083h-I7 for bug-gnu-emacs@gnu.org; Thu, 04 Jan 2018 14:53: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: Thu, 04 Jan 2018 19:53: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.151509553630924 (code B ref 29767); Thu, 04 Jan 2018 19:53:02 +0000 Original-Received: (at 29767) by debbugs.gnu.org; 4 Jan 2018 19:52:16 +0000 Original-Received: from localhost ([127.0.0.1]:36021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXBYk-00082g-TF for submit@debbugs.gnu.org; Thu, 04 Jan 2018 14:52:15 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:38039) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXBYi-00082T-Mx for 29767@debbugs.gnu.org; Thu, 04 Jan 2018 14:52:13 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 810AF20F9F for <29767@debbugs.gnu.org>; Thu, 4 Jan 2018 20:52:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1515095526; bh=Y868I76G68/q4k9Mngk6FWhPpV4Q4Qcmq7zOKsDaBHc=; h=From:To:Cc:Subject:Date:From; b=Rj9IOjqp/p2uH4TJghr9awhdM9wJ0WIPDXi2UA9Ixg/7ayGFAZwMapVg6qM8v+DWA FmtDaRMdUO3/yyNXhYc6nmQER/s3uQacqU01L/EPSHOdnMQhXEqYRiL7GDeE6R7MIP YdWG8DbbK9xfZxiI29tFqHCN3LmvLqISe05QgOKv7z39CbwN6z9f82gOLI7TeHLndZ qN9ofxII5I1ccniptUQC9IJza+nyPljW+orSF04x8zpVPKxsG5Q1yhn1I5fTzKmcVe wjLDaGptIWdK+RfkMZbsvyNwOuf3GrppZNTuRRt73Rax1odnGBbb0M9CSCFvz4MdGt 3s0fvvJlCwxZQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3zCJNN6y8Dz9rxD; Thu, 4 Jan 2018 20:52:04 +0100 (CET) In-Reply-To: <87vagigayz.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> 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:141780 Archived-At: Please ignore this my message (was ignored I think already). I feel a bit dumb, because the same idea but with better detail was given in the OP of this thread already. Tomas Nordin writes: > 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