From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#5570: Emacs 23.1.91.1 C++ mode "ESC C-q" and TAB indenting issue. Date: Fri, 19 Feb 2010 20:34:37 +0000 Message-ID: <20100219203437.GA3487@muc.de> References: <000e01caad1e$dcbfc560$963f5020$@net> <876360s8rw.fsf@stupidchicken.com> <20100214201006.GA6169@muc.de> <000001caae62$638af6c0$2aa0e440$@net> <20100216163923.GB3456@muc.de> <000301caaf36$d5f86100$81e92300$@net> <20100217094652.GC2392@muc.de> <000301caafef$f64d3520$e2e79f60$@net> <20100218151250.GD2671@muc.de> <002101cab0b2$879ed0c0$96dc7240$@net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1266612788 24938 80.91.229.12 (19 Feb 2010 20:53:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Feb 2010 20:53:08 +0000 (UTC) Cc: 'Chong Yidong' , 5570@debbugs.gnu.org To: Bob Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 19 21:53:05 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NiZqS-000340-DM for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Feb 2010 21:53:04 +0100 Original-Received: from localhost ([127.0.0.1]:42123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NiZqR-0006C9-SM for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Feb 2010 15:53:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NiZqN-0006C4-GZ for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2010 15:52:59 -0500 Original-Received: from [140.186.70.92] (port=55267 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NiZqM-0006Bm-Mw for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2010 15:52:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NiZqK-0006r7-0n for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2010 15:52:58 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40236) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NiZqJ-0006r3-S5 for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2010 15:52:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NiZSE-0007Ac-2G; Fri, 19 Feb 2010 15:28:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Alan Mackenzie Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Feb 2010 20:28:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5570 X-Emacs-PR-Package: emacs,cc-mode X-Emacs-PR-Keywords: Original-Received: via spool by 5570-submit@debbugs.gnu.org id=B5570.126661125127542 (code B ref 5570); Fri, 19 Feb 2010 20:28:02 +0000 Original-Received: (at 5570) by debbugs.gnu.org; 19 Feb 2010 20:27:31 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NiZRe-0007A9-J9 for submit@debbugs.gnu.org; Fri, 19 Feb 2010 15:27:30 -0500 Original-Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NiZRb-0007A2-Bs for 5570@debbugs.gnu.org; Fri, 19 Feb 2010 15:27:25 -0500 Original-Received: (qmail 94789 invoked by uid 3782); 19 Feb 2010 20:27:18 -0000 Original-Received: from acm.muc.de (pD9E23BB4.dip.t-dialin.net [217.226.59.180]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Fri, 19 Feb 2010 21:27:16 +0100 Original-Received: (qmail 3671 invoked by uid 1000); 19 Feb 2010 20:34:37 -0000 Content-Disposition: inline In-Reply-To: <002101cab0b2$879ed0c0$96dc7240$@net> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 19 Feb 2010 15:28:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35201 Archived-At: Hi, Bob, I think I've got the problem nailed. And I now think you were right when you suggested it's related to the other indentation problems. Would you please apply this patch to cc-mode.el, and tell me if the problem's been fixed. Thanks! *** orig/cc-mode.el 2010-02-18 16:29:49.000000000 +0000 --- cc-mode.el 2010-02-19 20:15:14.630249504 +0000 *************** *** 635,641 **** (save-excursion (if c-get-state-before-change-functions (mapc (lambda (fn) ! (funcall fn beg end)) c-get-state-before-change-functions)) (if c-before-font-lock-function (funcall c-before-font-lock-function (point-min) (point-max) --- 635,641 ---- (save-excursion (if c-get-state-before-change-functions (mapc (lambda (fn) ! (funcall fn (point-min) (point-max))) c-get-state-before-change-functions)) (if c-before-font-lock-function (funcall c-before-font-lock-function (point-min) (point-max) *************** *** 1031,1036 **** --- 1031,1044 ---- (when (> beg end) (setq beg end))) + ;; C-y is capable of spuriously converting category properties + ;; c--as-paren-syntax into hard syntax-table properties. Remove + ;; these when it happens. + (c-clear-char-property-with-value beg end 'syntax-table + c-<-as-paren-syntax) + (c-clear-char-property-with-value beg end 'syntax-table + c->-as-paren-syntax) + (c-trim-found-types beg end old-len) ; maybe we don't need all of these. (c-invalidate-sws-region-after beg end) (c-invalidate-state-cache beg) On Thu, Feb 18, 2010 at 07:53:34AM -0800, Bob wrote: > Alan, > > That's good news! Please let me know when you get it fixed and I'd like to > try it out. > > BTW, the indenting and paren matching is a world better than 21.2, esp. with > regard to template '<' and '>' characters. Good job! > > Bob -- Alan Mackenzie (Nuremberg, Germany).