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#193: Fix for bug#193. Date: Fri, 9 Jul 2010 18:51:16 +0000 Message-ID: <20100709185115.GA3036@muc.de> References: <4820D259.2060805@bbn.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1278702013 14699 80.91.229.12 (9 Jul 2010 19:00:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 9 Jul 2010 19:00:13 +0000 (UTC) Cc: 193@debbugs.gnu.org To: Deniz Dogan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 09 21:00:12 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 1OXInz-0003FF-Jk for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Jul 2010 21:00:11 +0200 Original-Received: from localhost ([127.0.0.1]:54969 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OXIny-0005yx-45 for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Jul 2010 15:00:10 -0400 Original-Received: from [140.186.70.92] (port=37041 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OXIns-0005ye-4e for bug-gnu-emacs@gnu.org; Fri, 09 Jul 2010 15:00:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OXInr-0005K3-3H for bug-gnu-emacs@gnu.org; Fri, 09 Jul 2010 15:00:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58406) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OXIno-0005I6-Jo; Fri, 09 Jul 2010 15:00:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OXIVR-0006ON-VL; Fri, 09 Jul 2010 14:41:01 -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: Fri, 09 Jul 2010 18:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 193 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 193-submit@debbugs.gnu.org id=B193.127870084424555 (code B ref 193); Fri, 09 Jul 2010 18:41:01 +0000 Original-Received: (at 193) by debbugs.gnu.org; 9 Jul 2010 18:40:44 +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 1OXIVA-0006O0-8I for submit@debbugs.gnu.org; Fri, 09 Jul 2010 14:40:44 -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 1OXIV6-0006Nt-LR for 193@debbugs.gnu.org; Fri, 09 Jul 2010 14:40:41 -0400 Original-Received: (qmail 51962 invoked by uid 3782); 9 Jul 2010 18:40:34 -0000 Original-Received: from acm.muc.de (pD9E50735.dip.t-dialin.net [217.229.7.53]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Fri, 09 Jul 2010 20:40:33 +0200 Original-Received: (qmail 3229 invoked by uid 1000); 9 Jul 2010 18:51:16 -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: Fri, 09 Jul 2010 14:41:01 -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:38322 Archived-At: Hi, Deniz, On Sun, Jun 27, 2010 at 02:47:52PM +0200, Deniz Dogan wrote: > Did anyone ever agree on what needs to be done to fix the problem? Would you try this patch, please, and then tell me whether or not it works fully. Thanks! *** orig/cc-cmds.el 2010-07-05 20:17:46.000000000 +0000 --- cc-cmds.el 2010-07-09 18:31:52.143059496 +0000 *************** *** 4229,4236 **** (let ((fill-paragraph-function ;; Avoid infinite recursion. (if (not (eq fill-paragraph-function 'c-fill-paragraph)) ! fill-paragraph-function))) ! (c-mask-paragraph t nil 'fill-paragraph arg)) ;; Always return t. This has the effect that if filling isn't done ;; above, it isn't done at all, and it's therefore effectively ;; disabled in normal code. --- 4229,4239 ---- (let ((fill-paragraph-function ;; Avoid infinite recursion. (if (not (eq fill-paragraph-function 'c-fill-paragraph)) ! fill-paragraph-function)) ! (start-point (point-marker))) ! (c-mask-paragraph ! t nil (lambda () (fill-region-as-paragraph (point-min) (point-max) arg))) ! (goto-char start-point)) ;; Always return t. This has the effect that if filling isn't done ;; above, it isn't done at all, and it's therefore effectively ;; disabled in normal code. > Deniz Dogan -- Alan Mackenzie (Nuremberg, Germany).