From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#6688: Acknowledgement (23.2; Auto-fill broken in C/C++ modes.) Date: Sat, 24 Jul 2010 20:26:05 +0000 Message-ID: <20100724202605.GA4406@muc.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1280004653 18918 80.91.229.12 (24 Jul 2010 20:50:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 24 Jul 2010 20:50:53 +0000 (UTC) Cc: 6688@debbugs.gnu.org To: Matthieu Moy , martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 24 22:50:51 2010 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 1OcleV-0006Ou-MU for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Jul 2010 22:50:48 +0200 Original-Received: from localhost ([127.0.0.1]:45239 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ocle3-0001Br-Gm for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Jul 2010 16:48:31 -0400 Original-Received: from [140.186.70.92] (port=48477 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ocldj-00014E-V2 for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2010 16:48:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OclZC-0004Cf-TP for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2010 16:43:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43454) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OclTO-0003Vv-17; Sat, 24 Jul 2010 16:37:30 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ocl8c-0000r8-FI; Sat, 24 Jul 2010 16:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sat, 24 Jul 2010 20:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6688 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 6688-submit@debbugs.gnu.org id=B6688.12800025083272 (code B ref 6688); Sat, 24 Jul 2010 20:16:02 +0000 Original-Received: (at 6688) by debbugs.gnu.org; 24 Jul 2010 20:15:08 +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 1Ocl7j-0000qj-2r for submit@debbugs.gnu.org; Sat, 24 Jul 2010 16:15:07 -0400 Original-Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ocl7f-0000q8-Hm for 6688@debbugs.gnu.org; Sat, 24 Jul 2010 16:15:04 -0400 Original-Received: (qmail 67943 invoked by uid 3782); 24 Jul 2010 20:15:03 -0000 Original-Received: from acm.muc.de (pD9E23917.dip.t-dialin.net [217.226.57.23]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Sat, 24 Jul 2010 22:15:01 +0200 Original-Received: (qmail 5067 invoked by uid 1000); 24 Jul 2010 20:26:05 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 24 Jul 2010 16:16:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:38878 Archived-At: Hi, Matthieu, thanks for such a wonderfully helpful bug report! On Wed, Jul 21, 2010 at 07:27:37PM +0200, Matthieu Moy wrote: > Digging a bit further, I found out in this example: > /* > Test > */ > * The problems seems to be that the last */ is at the beginning of > line. If I add a space before, the problem disapears. It seems to be > a problem with `c-mask-paragraph', around this > (let* ((ender-start (save-excursion > (goto-char (cdr c-lit-limits)) > (skip-syntax-backward "^w ") > (point))) The problem is indeed nearby, in c-mask-paragraph. Would you please try out the patch below, indeed please test it as intensively as possible and let me know if there are any remaining problems. The code here is complicated enough for me not to be totally confident about the patch. > since the skip-syntax-backward will skip the newline and move out of > the line of the */. > * If I download version 5.31.3 of cc-mode and install it, the problem > goes away. > Hope this helps, Very much so! ######################################################################### Hi, Martin, would you please try this patch out on the test case for which you committed change 83096, and let me know if that bug remains fixed. 83096 is this one: ------------------------------------------------------------ revno: 83096 committer: Martin Rudalics timestamp: Sat 2007-12-08 09:55:18 +0000 message: (c-mask-paragraph): Avoid invalid search bound error in block comment branch. Thanks! ######################################################################### > -- > Matthieu Moy > http://www-verimag.imag.fr/~moy/ -- Alan Mackenzie (Nuremberg, Germany).