From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#16526: 24.3.50; scroll-conservatively & c-mode regression Date: Wed, 02 Jul 2014 15:40:55 -0400 Message-ID: References: <20140628130059.GA4144@acm.acm> <53AECA88.7010401@gmx.at> <20140628145509.GB4144@acm.acm> <53AFD1FA.5010201@gmx.at> <20140629091757.GA2948@acm.acm> <53AFE536.7010407@gmx.at> <20140629124829.GC2948@acm.acm> <53B02042.1050107@gmx.at> <20140629144151.GD2948@acm.acm> <20140702184013.GA3823@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1404330157 10310 80.91.229.3 (2 Jul 2014 19:42:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Jul 2014 19:42:37 +0000 (UTC) Cc: 16526-done@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 02 21:42:30 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X2QQH-0007Xm-OJ for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Jul 2014 21:42:29 +0200 Original-Received: from localhost ([::1]:56212 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2QQH-00062N-7E for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Jul 2014 15:42:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2QQ7-000626-Aq for bug-gnu-emacs@gnu.org; Wed, 02 Jul 2014 15:42:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2QPz-0006PH-LZ for bug-gnu-emacs@gnu.org; Wed, 02 Jul 2014 15:42:19 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49586) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2QPq-0006Lr-DC; Wed, 02 Jul 2014 15:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X2QPp-0000tt-Jf; Wed, 02 Jul 2014 15:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Wed, 02 Jul 2014 19:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16526 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 16526-done@debbugs.gnu.org id=D16526.14043300643344 (code D ref 16526); Wed, 02 Jul 2014 19:42:01 +0000 Original-Received: (at 16526-done) by debbugs.gnu.org; 2 Jul 2014 19:41:04 +0000 Original-Received: from localhost ([127.0.0.1]:40736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X2QOu-0000rq-AB for submit@debbugs.gnu.org; Wed, 02 Jul 2014 15:41:04 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:48337) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X2QOr-0000r8-GZ for 16526-done@debbugs.gnu.org; Wed, 02 Jul 2014 15:41:02 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCw4mEhQYDSSIBAjSGReOIlgHhDgEqRmBaoNMIYEs X-IPAS-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCw4mEhQYDSSIBAjSGReOIlgHhDgEqRmBaoNMIYEs X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="75828705" Original-Received: from 75-119-224-253.dsl.teksavvy.com (HELO ceviche.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 02 Jul 2014 15:40:55 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 3FD78660FA; Wed, 2 Jul 2014 15:40:55 -0400 (EDT) In-Reply-To: <20140702184013.GA3823@acm.acm> (Alan Mackenzie's message of "Wed, 2 Jul 2014 18:40:13 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:91114 Archived-At: >> FWIW, CC-mode is one of the last remaining major modes (at least the >> only one I know of that's bundled with Emacs) that doesn't play nice >> with syntax-ppss. > Doesn't it? First I've heard of it. Well, I go by what you said: No, syntax-ppss wouldn't do here without considerable modification. > Though of course, what comes out of syntax-ppss is going to be of > limited value when you've got lines like this in your source: > > #define FOO BAR /* accidentally unclosed comment. Yes, sometimes you need to be a bit creative to get syntax-ppss to behave. But so far, I've always managed to coerce it acceptably. > Just as a matter of interest, what code is there around which wants to > use syntax-ppss on a CC Mode buffer? It's used by various obscure packages like font-lock, newcomment, ... >> Incidentally, AFAIK it's also the only code which uses >> font-lock-extend-after-change-region-function .... > Is that right? Well, what do you know! Still, it's a good facility to > have around for when it's needed. It avoids the need to have to advise > font-lock after change functions, whilst still doing fontification right. Other packages manage to do it right without it. As soon as CC-mode is changed to use syntax-propertize-function, I expect that it won't use font-lock-extend-after-change-region-function any longer. > CC Mode does what it has to do to do its job. As you yourself, amongst > others, have remarked, CC Mode deals with utter bastards of languages. > Its caches are quite capable of being robust. I'm not convinced that > syntax-ppss is capable of being robust. Some of its shortcomings are > listed in syntax.el. I don't think there's much point in comparing the track record of caching bugs in syntax.el compared to cc-mode. Stefan