From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.devel Subject: Re: A possible way for CC Mode to resolve its sluggishness Date: Mon, 29 Apr 2019 09:23:40 +0000 Message-ID: <20190429092340.GA4452@ACM> References: <20190426193056.GC4720@ACM> <20190427135725.GB4822@ACM> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="246884"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: cc-mode-help@lists.sourceforge.net, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: cc-mode-help-bounces@lists.sourceforge.net Mon Apr 29 11:24:00 2019 Return-path: Envelope-to: sf-cc-mode-help@m.gmane.org Original-Received: from lists.sourceforge.net ([216.105.38.7]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hL2Vz-00123N-1b for sf-cc-mode-help@m.gmane.org; Mon, 29 Apr 2019 11:23:59 +0200 Original-Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1hL2Vt-0004iQ-Hy; Mon, 29 Apr 2019 09:23:53 +0000 Original-Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1hL2Vs-0004iF-0S for cc-mode-help@lists.sourceforge.net; Mon, 29 Apr 2019 09:23:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=From:In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=SynjxbS+g7OnMtIHITTP0Z5Xn7cvgf7574b0VWG23AQ=; b=Ur5zdI8cs+9g+qidS69v7K3zg VpAVkRuihd0CTy2NMbuCUNdXIHTUmfXcWHEGq2qA1TFGA9H6suBM7yiPsp+LpFiF/mK7eQyO1O4z9 Gsz0GYOcVBzxmtuMeit5TVx6pvGVPv7h1ZdH/3B0/Ni1AOBHNHPxeAeIa7g3rxgXvwAsc=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject: Cc:To:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=SynjxbS+g7OnMtIHITTP0Z5Xn7cvgf7574b0VWG23AQ=; b=IhihZqghLS+5J77dlpR98vjDJQ 1BPsQQ7hOUErPMhePkurC9KZDb8Svny8knrJN3iXE1GoF1V+VmfETMcYs8NfEDRcFPJIOXdR5Ed8K jnfbeWpXmSqRQ0aBOFJA6erS5J/mFWkEMEH5TGCt/qLYO/nt05xJ9nncq5vKMu3AeSfs=; Original-Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by sfi-mx-1.v28.lw.sourceforge.com with smtp (Exim 4.90_1) id 1hL2Vp-0011zZ-Ip for cc-mode-help@lists.sourceforge.net; Mon, 29 Apr 2019 09:23:51 +0000 Original-Received: (qmail 63045 invoked by uid 3782); 29 Apr 2019 09:23:42 -0000 Original-Received: from acm.muc.de (p4FE15FB0.dip0.t-ipconnect.de [79.225.95.176]) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 29 Apr 2019 11:23:40 +0200 Original-Received: (qmail 4457 invoked by uid 1000); 29 Apr 2019 09:23:40 -0000 Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-Headers-End: 1hL2Vp-0011zZ-Ip X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Bug reports, feature requests, and general talk about CC Mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: cc-mode-help-bounces@lists.sourceforge.net Xref: news.gmane.org gmane.emacs.cc-mode.general:7616 gmane.emacs.devel:236024 Archived-At: Hello, Stefan. On Sun, Apr 28, 2019 at 21:46:25 -0400, Stefan Monnier wrote: > Keeping everything always up-to-date, whether we use them or not, is not > in itself of any benefit to the end-user. I may quote you on this at some time in the future. :-) [ .... ] > >> Maybe another part of the problem is that CC-mode tries to do more than > >> most other major modes: e.g. the highlighting of unclosed strings. > >> For plain single-line strings this can be fairly cheap, but for > >> multiline strings, keeping this information constantly up-to-date over > >> the whole buffer can be costly. > > CC Mode is successful in this regard. The highlighting with > > warning-face of unclosed string openers is a useful feature which other > > modes could emulate. > I don't think "successful" is an appropriate description (e.g. I don't > know what a failure would be). I was countering your disparaging use of the word "tries", which was uncalled for. It suggested that attempts have been made to do things in CC Mode, but those attempts have failed. That is not the case. [ .... ] > Stefan -- Alan Mackenzie (Nuremberg, Germany).