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, Toby.Allsopp@navman.com,
	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: 1 Jan 2007 23:49:12 +0100	[thread overview]
Message-ID: <20070102000046.GC2094@muc.de> (raw)
In-Reply-To: <E1GzP10-0006Eb-6k@fencepost.gnu.org>

Hi, Richard, Michaël!

On Tue, Dec 26, 2006 at 09:59:38PM -0500, Richard Stallman wrote:
>     I'll try to see if I can find a fix. ATM, I can fix Toby's problem but
>     I still have weird behaviors:

> Are they NEW weird behaviors, or did they already happen?
> If they are not new, please install your additional patch.

>     I think the way `hang-ender-stuck' is processed has to be read by some
>     knowledgeable people, and patched once and for all.

> Maybe you are right, but we may not have anyone else available now.
> Alan seems to be very busy these days, and I don't know if we can
> count on him to have time for this soon.

Apologies: Now that I've committed a wodge of CC Mode bug fixes, I'm
hoping to much less "busy" from now on.

I've just fixed a bug very similar to this, in which a comment ending in
"=======*/" got rubbed out.

The problem with the current bug (in the latest cc-engine.el) is that
c-mask-paragraph assumes that a c-style comment is terminated (with
"*/"), doing this at one point:

(search-forward-regexp (concat "\\=[ \t]*\\("
 		        c-current-comment-prefix "\\)")
		       (- (cdr c-lit-limits) 2) t)
		        ^^^^^^^^^^^^^^^^^^^^^^^^^^

Clearly this is nonsense if the comment hasn't been terminated yet.

I'll fix this (hopefully) tomorrow.
 
Happy 2007!
 
-- 
Alan.

  reply	other threads:[~2007-01-01 22:49 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 [this message]
2006-12-28 22:09       ` Giorgos Keramidas
2007-01-02 21:09 ` Alan Mackenzie
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=20070102000046.GC2094@muc.de \
    --to=acm@muc.de \
    --cc=Toby.Allsopp@navman.com \
    --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.