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: 2 Jan 2007 22:09:17 +0100
Date: Tue, 2 Jan 2007 22:20:55 +0000
User-agent: Mutt/1.5.9i

Hi, Toby, Hi Richard!

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.

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]