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, 31 Jul 2010 09:49:54 +0000 Message-ID: <20100731094954.GA2769@muc.de> References: <20100725130939.GA1141@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1280570892 12692 80.91.229.12 (31 Jul 2010 10:08:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 31 Jul 2010 10:08:12 +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 31 12:08:09 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 1Of8zA-00057I-Jc for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Jul 2010 12:08:08 +0200 Original-Received: from localhost ([127.0.0.1]:36554 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Of8zA-00063x-0Z for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Jul 2010 06:08:08 -0400 Original-Received: from [140.186.70.92] (port=51633 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Of8z3-00062W-2P for bug-gnu-emacs@gnu.org; Sat, 31 Jul 2010 06:08:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Of8z1-0001bk-QX for bug-gnu-emacs@gnu.org; Sat, 31 Jul 2010 06:08:00 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47032) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Of8yu-0001aP-EE; Sat, 31 Jul 2010 06:07:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Of8X0-0006DE-G1; Sat, 31 Jul 2010 05:39: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, 31 Jul 2010 09:39: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.128056910823869 (code B ref 6688); Sat, 31 Jul 2010 09:39:02 +0000 Original-Received: (at 6688) by debbugs.gnu.org; 31 Jul 2010 09:38:28 +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 1Of8WR-0006Cw-TL for submit@debbugs.gnu.org; Sat, 31 Jul 2010 05:38:28 -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 1Of8WP-0006Cq-CT for 6688@debbugs.gnu.org; Sat, 31 Jul 2010 05:38:26 -0400 Original-Received: (qmail 6396 invoked by uid 3782); 31 Jul 2010 09:38:42 -0000 Original-Received: from acm.muc.de (pD9E52E2C.dip.t-dialin.net [217.229.46.44]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Sat, 31 Jul 2010 11:38:41 +0200 Original-Received: (qmail 2833 invoked by uid 1000); 31 Jul 2010 09:49:54 -0000 Content-Disposition: inline In-Reply-To: <20100725130939.GA1141@muc.de> 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, 31 Jul 2010 05:39: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:39092 Archived-At: Hi, Matthieu and Martin, I've applied this patch to the Bazaar head at savannah. That should fix the bug. Thanks once again for such a high quality bug report. On Sun, Jul 25, 2010 at 01:09:39PM +0000, Alan Mackenzie wrote: > === modified file 'lisp/progmodes/cc-cmds.el' > *** lisp/progmodes/cc-cmds.el 2010-05-12 11:06:12 +0000 > --- lisp/progmodes/cc-cmds.el 2010-07-23 21:27:24 +0000 > *************** > *** 3974,3989 **** > ;; "Invalid search bound (wrong side of point)" > ;; error in the subsequent re-search. Maybe > ;; another fix would be needed (2007-12-08). > ! (and (> (- (cdr c-lit-limits) 2) (point)) > (search-forward-regexp > (concat "\\=[ \t]*\\(" c-current-comment-prefix "\\)") > (- (cdr c-lit-limits) 2) t) > (not (search-forward-regexp > "\\(\\s \\|\\sw\\)" > (- (cdr c-lit-limits) 2) 'limit)) > ! ;; The comment ender IS on its own line. Exclude > ! ;; this line from the filling. > ! (set-marker end (c-point 'bol)))) > > ;; The comment ender is hanging. Replace all space between it > ;; and the last word either by one or two 'x's (when > --- 3974,3990 ---- > ;; "Invalid search bound (wrong side of point)" > ;; error in the subsequent re-search. Maybe > ;; another fix would be needed (2007-12-08). > ! (or (<= (- (cdr c-lit-limits) 2) (point)) > ! (and > (search-forward-regexp > (concat "\\=[ \t]*\\(" c-current-comment-prefix "\\)") > (- (cdr c-lit-limits) 2) t) > (not (search-forward-regexp > "\\(\\s \\|\\sw\\)" > (- (cdr c-lit-limits) 2) 'limit)) > ! ;; The comment ender IS on its own line. Exclude > ! ;; this line from the filling. > ! (set-marker end (c-point 'bol))))) > > ;; The comment ender is hanging. Replace all space between it > ;; and the last word either by one or two 'x's (when > > ######################################################################### > > http://www-verimag.imag.fr/~moy/ -- Alan Mackenzie (Nuremberg, Germany).