emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: auto-fill in c-mode messes up incomplete comments]


From: Alan Mackenzie
Subject: Re: address@hidden: auto-fill in c-mode messes up incomplete comments]
Date: 3 Jan 2007 21:46:22 +0100
Date: Wed, 3 Jan 2007 21:58:02 +0000
User-agent: Mutt/1.5.9i

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: address@hidden
> > From: Toby Allsopp <address@hidden>
> > Date: Tue, 28 Nov 2006 11:48:39 +1300
> > MIME-Version: 1.0
> > Content-Type: text/plain; charset=us-ascii
> > Cc: address@hidden
> > 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 / * <return> * 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).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]