From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.devel Subject: Re: What about putting CC Mode 5.32 into Emacs? Date: Wed, 12 Oct 2011 11:12:58 -0400 Message-ID: <87aa965jlx.fsf@maru.md5i.com> References: <20111008131416.GE2783@acm.acm> <87d3e7gqbl.fsf@stupidchicken.com> <874nzfsetz.fsf@interalia.com> <20111011191637.GA3083@acm.acm> <87ehyj5afo.fsf@maru.md5i.com> <87ty7eqoqr.fsf@interalia.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1318432403 17184 80.91.229.12 (12 Oct 2011 15:13:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 12 Oct 2011 15:13:23 +0000 (UTC) Cc: Alan Mackenzie , emacs-devel@gnu.org To: Burton Samograd Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 12 17:13:16 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RE0Ue-0006o4-Cq for ged-emacs-devel@m.gmane.org; Wed, 12 Oct 2011 17:13:16 +0200 Original-Received: from localhost ([::1]:38546 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE0Ud-0005zl-FF for ged-emacs-devel@m.gmane.org; Wed, 12 Oct 2011 11:13:15 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE0UV-0005xm-FW for emacs-devel@gnu.org; Wed, 12 Oct 2011 11:13:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RE0UP-0001wt-Mj for emacs-devel@gnu.org; Wed, 12 Oct 2011 11:13:07 -0400 Original-Received: from md5i.com ([75.151.244.229]:40897 helo=maru.md5i.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE0UP-0001wh-IE for emacs-devel@gnu.org; Wed, 12 Oct 2011 11:13:01 -0400 Original-Received: from md5i by maru.md5i.com with local (Exim 4.76) (envelope-from ) id 1RE0UM-0006sC-5c; Wed, 12 Oct 2011 11:12:58 -0400 In-Reply-To: <87ty7eqoqr.fsf@interalia.com> (Burton Samograd's message of "Wed, 12 Oct 2011 08:16:28 -0600") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 75.151.244.229 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:145020 Archived-At: Burton Samograd writes: > "Michael Welsh Duggan" writes: > >> Alan Mackenzie writes: >> >>> Hello, Burton. >>> >>> On Tue, Oct 11, 2011 at 09:55:20AM -0600, Burton Samograd wrote: >>> >>>> I certainly hope that 5.32 fixes the indentation issues that I have >>>> been experiencing with the lastest builds of emacs. It's been quite >>>> unreliable and annoying, although I haven't put up the effort to write >>>> a bug report as I am running bzr emacs... [...] >> Have you looked at bug 9560 recently? >> >> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9560 > > No I haven't, but I did just look it over. > >> >> I have added as much debugging information as I could. I currently have >> an emacs -Q on my home machine which is in a bad-indentation state. I >> can leave it up for a few days. > > It sounds a bit different than what I've been experiencing. From > memory, it seems like when I'm editing code in a function, it loses the > idea that I am in a function and loses a level of indentation for all > code below a certain point. Sometimes going up a few lines before the > problem and re-indenting every line fixes it, but it can take a couple > of tries to get it to actually work. Other times I have to go to near > the start of the function and re-indent everything. Sometimes nothing > works and I just re-indent it manually. I have seen this as well. The reason I have documented the one I have is that I have been able to recreate it fairly regularly, and I am hoping that the underlying cause is similar. > I don't want to complain without offering a solution, but in the 15+ > years I've been using emacs I have *never* had a problem with C code > indentation and have grown to rely on it to help me find syntax errors > in my code. Why it has unreliable is beyond me when it's worked so well > for so long...I hope this wasn't just change for the sake of change. Definitely not. I don't recall all the performance problems the caching code was added to support, but they were very real, and there were a fair number of complaints because of them. I applaud the work Alan has done to attempt to improve cc-mode, although I do worry about the complexity of the current system. That said, I will file a bug every time I find a new indentation problem after a new cc-mode update, whether or not I can recreate it, especially now that we are in pre-release. I want to make sure that people using Emacs after the release don't encounter the same problems I am encountering. -- Michael Welsh Duggan (md5i@md5i.com)