From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.devel Subject: Re: Fill for // style comments in C Date: Tue, 28 Nov 2006 11:32:52 +0900 Message-ID: References: <456AB431.4020103@gmx.at> Reply-To: Miles Bader NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1164681207 30704 80.91.229.2 (28 Nov 2006 02:33:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Nov 2006 02:33:27 +0000 (UTC) Cc: rms@gnu.org, lennart.borgman.073@student.lu.se, emacs-devel@gnu.org, bug-cc-mode@gnu.org, monnier@iro.umontreal.ca, Herbert Euler Original-X-From: cc-mode-help-bounces@lists.sourceforge.net Tue Nov 28 03:33:23 2006 Return-path: Envelope-to: sf-cc-mode-help@m.gmane.org Original-Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gosmd-0003iI-Q1 for sf-cc-mode-help@m.gmane.org; Tue, 28 Nov 2006 03:33:20 +0100 Original-Received: from sc8-sf-list1-new.sourceforge.net (unknown [10.3.1.93]) by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTP id E0E1413411; Mon, 27 Nov 2006 18:33:18 -0800 (PST) Original-Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1Gosmb-0004G4-U8 for cc-mode-help@lists.sourceforge.net; Mon, 27 Nov 2006 18:33:17 -0800 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1Gosma-0003lK-Ik for cc-mode-help@lists.sourceforge.net; Mon, 27 Nov 2006 18:33:17 -0800 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.52) id 1GosmS-0001Cz-9n for bug-cc-mode@gnu.org; Mon, 27 Nov 2006 21:33:08 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.52) id 1GosmN-0006qJ-FZ for bug-cc-mode@gnu.org; Mon, 27 Nov 2006 21:33:06 -0500 Original-Received: from [202.32.8.193] (helo=tyo201.gate.nec.co.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GosmL-0006nM-Bf; Mon, 27 Nov 2006 21:33:02 -0500 Original-Received: from relay21.aps.necel.com ([10.29.19.50]) by tyo201.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id kAS2WmRQ004011; Tue, 28 Nov 2006 11:32:53 +0900 (JST) Original-Received: from relay21.aps.necel.com ([10.29.19.16] [10.29.19.16]) by relay21.aps.necel.com with ESMTP; Tue, 28 Nov 2006 11:32:53 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.97.235] [10.114.97.235]) by relay21.aps.necel.com with ESMTP; Tue, 28 Nov 2006 11:32:53 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id 4B0593FB; Tue, 28 Nov 2006 11:32:53 +0900 (JST) Original-To: martin rudalics System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <456AB431.4020103@gmx.at> (martin rudalics's message of "Mon\, 27 Nov 2006 10\:47\:29 +0100") Original-Lines: 15 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on monty-python X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed version=3.0.4 X-Spam-Score: 0.0 (/) X-Spam-Report: Spam Filtering performed by sourceforge.net. See http://spamassassin.org/tag/ for more details. Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=200001 X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.1.8 Precedence: list List-Id: "Bug reports, feature requests, and general talk about CC Mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: cc-mode-help-bounces@lists.sourceforge.net Errors-To: cc-mode-help-bounces@lists.sourceforge.net Xref: news.gmane.org gmane.emacs.cc-mode.general:4122 gmane.emacs.devel:62890 Archived-At: martin rudalics writes: > It's because `c-fill-paragraph' calls `c-mask-paragraph' the latter > calls `fill-paragraph' and `fill-paragraph' gets it wrong since it has > `comment-end' set to " */" instead of nil. Does the attached workaround > remove the problem? I tried this patch, and it does indeed seem to fix the filling problem -- but it has a serious side-effect: with this patch applied, the SPC key (bound to self-insert-command) no longer works! [There's no error or anything, but no spaces get inserted when you type SPC.] -Miles -- The car has become... an article of dress without which we feel uncertain, unclad, and incomplete. [Marshall McLuhan, Understanding Media, 1964] ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV