From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Herbert Euler" Newsgroups: gmane.emacs.devel Subject: Re: Fill for // style comments in C Date: Tue, 28 Nov 2006 13:19:35 +0800 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: sea.gmane.org 1164691382 8516 80.91.229.2 (28 Nov 2006 05:23:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Nov 2006 05:23:02 +0000 (UTC) Cc: bug-cc-mode@gnu.org, lennart.borgman.073@student.lu.se, emacs-devel@gnu.org, monnier@iro.umontreal.ca, rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 28 06:22:59 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GovQl-0005zD-Fz for ged-emacs-devel@m.gmane.org; Tue, 28 Nov 2006 06:22:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GovQk-0007wj-Mg for ged-emacs-devel@m.gmane.org; Tue, 28 Nov 2006 00:22:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GovNr-0005wN-CQ for emacs-devel@gnu.org; Tue, 28 Nov 2006 00:19:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GovNl-0005op-QB for emacs-devel@gnu.org; Tue, 28 Nov 2006 00:19:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GovNl-0005oS-IK for emacs-devel@gnu.org; Tue, 28 Nov 2006 00:19:49 -0500 Original-Received: from [65.54.246.153] (helo=bay0-omc2-s17.bay0.hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GovNd-0008Vj-8p; Tue, 28 Nov 2006 00:19:41 -0500 Original-Received: from hotmail.com ([64.4.26.25]) by bay0-omc2-s17.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 27 Nov 2006 21:19:38 -0800 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 27 Nov 2006 21:19:38 -0800 Original-Received: from 64.4.26.200 by by112fd.bay112.hotmail.msn.com with HTTP; Tue, 28 Nov 2006 05:19:35 GMT X-Originating-IP: [216.145.54.158] X-Originating-Email: [herberteuler@hotmail.com] X-Sender: herberteuler@hotmail.com In-Reply-To: Original-To: miles@gnu.org, rudalics@gmx.at X-OriginalArrivalTime: 28 Nov 2006 05:19:38.0244 (UTC) FILETIME=[CCC44C40:01C712AC] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:62910 Archived-At: Strange. I tried typing SPC, and spaces were inserted. Where did you put the point? Regards, Guanpeng Xu >From: Miles Bader >Reply-To: Miles Bader >To: martin rudalics >CC: Herbert Euler , monnier@iro.umontreal.ca, > bug-cc-mode@gnu.org, lennart.borgman.073@student.lu.se, rms@gnu.org, > emacs-devel@gnu.org >Subject: Re: Fill for // style comments in C >Date: Tue, 28 Nov 2006 11:32:52 +0900 > >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] _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/