all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
Cc: bug-cc-mode@gnu.org, monnier@IRO.UMontreal.CA,
	"Michaël Cadilhac" <michael@cadilhac.name>,
	emacs-devel@gnu.org
Subject: Re: [Toby.Allsopp@navman.com: auto-fill in c-mode messes up incomplete comments]
Date: 2 Jan 2007 22:09:17 +0100	[thread overview]
Message-ID: <20070102222055.GA2006@muc.de> (raw)
In-Reply-To: <E1Gydvi-0002NK-M0@fencepost.gnu.org>

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: emacs-pretest-bug@gnu.org
> From: Toby Allsopp <Toby.Allsopp@navman.com>
> 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 / * <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)

  parent reply	other threads:[~2007-01-02 21:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-25  0:43 [Toby.Allsopp@navman.com: auto-fill in c-mode messes up incomplete comments] Richard Stallman
2006-12-25 11:25 ` Michaël Cadilhac
2006-12-26  0:13   ` Toby Allsopp
2006-12-26  2:26   ` Richard Stallman
2006-12-26 10:47     ` Michaël Cadilhac
2006-12-27  2:59       ` Richard Stallman
2007-01-01 22:49         ` Alan Mackenzie
2006-12-28 22:09       ` Giorgos Keramidas
2007-01-02 21:09 ` Alan Mackenzie [this message]
2007-01-03 20:46   ` Alan Mackenzie
2007-01-04  7:59     ` Toby Allsopp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070102222055.GA2006@muc.de \
    --to=acm@muc.de \
    --cc=bug-cc-mode@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=michael@cadilhac.name \
    --cc=monnier@IRO.UMontreal.CA \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.