From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: [Toby.Allsopp@navman.com: auto-fill in c-mode messes up incomplete comments] Date: 3 Jan 2007 21:46:22 +0100 Message-ID: <20070103215802.GA2823@muc.de> References: <20070102222055.GA2006@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1167857206 26043 80.91.229.12 (3 Jan 2007 20:46:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Jan 2007 20:46:46 +0000 (UTC) Cc: bug-cc-mode@gnu.org, monnier@IRO.UMontreal.CA, =?iso-8859-1?Q?Micha=EBl?= Cadilhac , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 03 21:46:43 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H2D0S-00065X-RE for ged-emacs-devel@m.gmane.org; Wed, 03 Jan 2007 21:46:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2D0S-0007jE-8n for ged-emacs-devel@m.gmane.org; Wed, 03 Jan 2007 15:46:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H2D0G-0007hq-Sa for emacs-devel@gnu.org; Wed, 03 Jan 2007 15:46:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H2D0F-0007fm-0O for emacs-devel@gnu.org; Wed, 03 Jan 2007 15:46:28 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2D0E-0007fT-Es for emacs-devel@gnu.org; Wed, 03 Jan 2007 15:46:26 -0500 Original-Received: from [193.149.48.1] (helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H2D0D-0004Oc-P7 for emacs-devel@gnu.org; Wed, 03 Jan 2007 15:46:26 -0500 Original-Received: (qmail 88475 invoked by uid 3782); 3 Jan 2007 20:46:22 -0000 Original-Received: from acm.muc.de (p54A3DB43.dip.t-dialin.net [84.163.219.67]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Wed, 03 Jan 2007 21:46:20 +0100 Original-Received: (qmail 3373 invoked by uid 1000); 3 Jan 2007 21:58:02 -0000 Original-Date: Wed, 3 Jan 2007 21:58:02 +0000 Original-To: Toby Allsopp , Richard Stallman Content-Disposition: inline In-Reply-To: <20070102222055.GA2006@muc.de> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de 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:64703 Archived-At: Hi, Toby, Hi Richard! On Tue, Jan 02, 2007 at 10:20:55PM +0000, Alan Mackenzie wrote: > On Sun, Dec 24, 2006 at 07:43:02PM -0500, Richard Stallman wrote: > > Would someone please work on this? > I've just submitted a fix in cc-cmds.el. That fix of mine was buggyi - sorry. I've just corrected it. Could you test this correction, please. > Toby, would you please update your cc-cmds.el, and see if my fix actually > is a fix. Thanks in Advance! > > ------- Start of forwarded message ------- > > To: emacs-pretest-bug@gnu.org > > From: Toby Allsopp > > Date: Tue, 28 Nov 2006 11:48:39 +1300 > > MIME-Version: 1.0 > > Content-Type: text/plain; charset=us-ascii > > Cc: emacs-snapshot@packages.debian.org > > Subject: auto-fill in c-mode messes up incomplete comments > > X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO > > autolearn=failed version=3.0.4 > > >>>From a shell prompt: > > emacs -q /tmp/tmp.c > > M-x auto-fill-mode > > /* > > * > > (That's / * * SPC). > > When typing the final space, the second line gets deleted. Pressing > > return instead messes it up differently. This seems to be a problem > > with c-mask-paragraph. > Absolutely spot on! I'd subtracted 2 from the position after "*/", > without actually testing that the "*/" was present. I think I've got it > right, now. > I'm not quite sure what you meant by the following, though. Can you let > me know whether or not it works now, please. > > After space: > > - --8<---------------cut here---------------start------------->8--- > > /* > > - --8<---------------cut here---------------end--------------->8--- > > After return: > > - --8<---------------cut here---------------start------------->8--- > > / > > ** > > - --8<---------------cut here---------------end--------------->8--- -- Alan Mackenzie (Ittersbach, Germany).