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: 1 Jan 2007 23:49:12 +0100 Message-ID: <20070102000046.GC2094@muc.de> References: <87d568b4jp.fsf@lrde.org> <87slf353y9.fsf@lrde.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1167691773 23767 80.91.229.12 (1 Jan 2007 22:49:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Jan 2007 22:49:33 +0000 (UTC) Cc: bug-cc-mode@gnu.org, Toby.Allsopp@navman.com, 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 Mon Jan 01 23:49:31 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 1H1VyE-0002s0-Ha for ged-emacs-devel@m.gmane.org; Mon, 01 Jan 2007 23:49:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H1VyD-0008Bq-Sy for ged-emacs-devel@m.gmane.org; Mon, 01 Jan 2007 17:49:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H1Vy0-00089V-8B for emacs-devel@gnu.org; Mon, 01 Jan 2007 17:49:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H1Vxz-000875-0P for emacs-devel@gnu.org; Mon, 01 Jan 2007 17:49:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H1Vxy-000870-Rk for emacs-devel@gnu.org; Mon, 01 Jan 2007 17:49:14 -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 1H1Vxy-0004JK-91 for emacs-devel@gnu.org; Mon, 01 Jan 2007 17:49:14 -0500 Original-Received: (qmail 89317 invoked by uid 3782); 1 Jan 2007 22:49:12 -0000 Original-Received: from acm.muc.de (p54A3D8EA.dip.t-dialin.net [84.163.216.234]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Mon, 01 Jan 2007 23:49:09 +0100 Original-Received: (qmail 5749 invoked by uid 1000); 2 Jan 2007 00:00:46 -0000 Original-Date: Tue, 2 Jan 2007 00:00:46 +0000 Original-To: Richard Stallman Content-Disposition: inline In-Reply-To: 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:64616 Archived-At: 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.