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: 33% speed up in CC Mode scrolling. Date: Fri, 17 Jun 2016 15:38:11 +0000 Message-ID: <20160617153811.GC3316@acm.fritz.box> References: <20160615222015.GA4813@acm.fritz.box> <5761FA98.2070101@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1466179870 9814 80.91.229.3 (17 Jun 2016 16:11:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jun 2016 16:11:10 +0000 (UTC) Cc: emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 17 18:10:57 2016 Return-path: Envelope-to: ged-emacs-devel@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 1bDwMA-0002ho-1x for ged-emacs-devel@m.gmane.org; Fri, 17 Jun 2016 18:10:54 +0200 Original-Received: from localhost ([::1]:58695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDwM9-0005av-2D for ged-emacs-devel@m.gmane.org; Fri, 17 Jun 2016 12:10:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDvqO-0005ea-Pt for emacs-devel@gnu.org; Fri, 17 Jun 2016 11:38:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDvqJ-0004qs-Hp for emacs-devel@gnu.org; Fri, 17 Jun 2016 11:38:03 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:56473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDvqJ-0004nR-5h for emacs-devel@gnu.org; Fri, 17 Jun 2016 11:37:59 -0400 Original-Received: (qmail 98198 invoked by uid 3782); 17 Jun 2016 15:37:56 -0000 Original-Received: from acm.muc.de (p548C685D.dip0.t-ipconnect.de [84.140.104.93]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 17 Jun 2016 17:37:54 +0200 Original-Received: (qmail 7114 invoked by uid 1000); 17 Jun 2016 15:38:11 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 193.149.48.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:204451 Archived-At: Hello, Richard. On Thu, Jun 16, 2016 at 07:15:44PM -0400, Richard Stallman wrote: > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > I have found CC mode font lock such a nuisance that I sometimes > turn it off. > It is a good thing to have sped it up, but it might still be far too > slow. Perhaps we should go back to an older version that is fast enough > even if it is more often wrong. Or, why not just set `font-lock-maximum-decoration' to 2? This runs at ~2½ times the speed of the default fontification (measured by scrolling all the way through .../src/xdisp.c), and is barely slower than `font-lock-maximum-decoration' being set to 1 (which merely fontifies comments and strings). Fair warning: setting `f-l-m-d', and making the setting work, is difficult (see bug #23783). One way is to do M-: (font-lock-refresh-defaults) in a buffer after changing `f-l-m-d'. > -- > Dr Richard Stallman > President, Free Software Foundation (gnu.org, fsf.org) > Internet Hall-of-Famer (internethalloffame.org) > Skype: No way! See stallman.org/skype.html. -- Alan Mackenzie (Nuremberg, Germany).