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#22884: 25.0.92; C/l mode editing takes waaaayy too long Date: Fri, 4 Mar 2016 21:08:18 +0000 Message-ID: <20160304210818.GC2117@acm.fritz.box> References: <56D72C35.4090708@cs.ucla.edu> <20160303124910.GA2852@acm.fritz.box> <56D87A6E.8090202@cs.ucla.edu> <83povbz3mp.fsf@gnu.org> <56D8CC45.2090102@cs.ucla.edu> <20160304144759.GB2117@acm.fritz.box> <56D9F0C6.4090800@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1457125595 7892 80.91.229.3 (4 Mar 2016 21:06:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Mar 2016 21:06:35 +0000 (UTC) Cc: 22884@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 04 22:06:18 2016 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 1abwvO-0001w6-T1 for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Mar 2016 22:06:15 +0100 Original-Received: from localhost ([::1]:43524 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abwvL-0003od-0z for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Mar 2016 16:06:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abwvH-0003nd-BU for bug-gnu-emacs@gnu.org; Fri, 04 Mar 2016 16:06:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abwvC-0004sq-Av for bug-gnu-emacs@gnu.org; Fri, 04 Mar 2016 16:06:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37008) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abwvC-0004sm-7b; Fri, 04 Mar 2016 16:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1abwvC-0002Aw-2d; Fri, 04 Mar 2016 16:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Fri, 04 Mar 2016 21:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22884 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 22884-submit@debbugs.gnu.org id=B22884.14571255508339 (code B ref 22884); Fri, 04 Mar 2016 21:06:02 +0000 Original-Received: (at 22884) by debbugs.gnu.org; 4 Mar 2016 21:05:50 +0000 Original-Received: from localhost ([127.0.0.1]:34134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1abwv0-0002AP-Mw for submit@debbugs.gnu.org; Fri, 04 Mar 2016 16:05:50 -0500 Original-Received: from mail.muc.de ([193.149.48.3]:32639) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1abwuy-0002AG-Dk for 22884@debbugs.gnu.org; Fri, 04 Mar 2016 16:05:48 -0500 Original-Received: (qmail 65982 invoked by uid 3782); 4 Mar 2016 21:05:46 -0000 Original-Received: from acm.muc.de (p579E8D6B.dip0.t-ipconnect.de [87.158.141.107]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 04 Mar 2016 22:05:44 +0100 Original-Received: (qmail 13617 invoked by uid 1000); 4 Mar 2016 21:08:18 -0000 Content-Disposition: inline In-Reply-To: <56D9F0C6.4090800@cs.ucla.edu> User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:114430 Archived-At: Hello, Paul. On Fri, Mar 04, 2016 at 12:32:06PM -0800, Paul Eggert wrote: > Alan Mackenzie wrote: > > I have had an idea for fixing Emacs so that we don't have this problem > > with parens in column 0. That is only to scan comments in the forward > > direction, and to mark them with text properties. `back_comment' will > > then be little more than checking these text properties are up to date, > > and then doing a backward text property search. > Would this mean we no longer need to put \( into Elisp doc strings too? It has > always been annoying that we have to do that. It would mean this, yes. open-paren-in-column-0-is-defun-start would become obsolete. > If it's practical to fold your idea into the emacs-25 branch it sounds like > it'll solve the problem. If it's safer to put such a change into the master > branch, I can install the patch I already wrote into the emacs-25 branch, as a > stopgap. What do you think? Definitely the master branch. The change is far too involved to slip into emacs-25 at this late stage. So I think you should install your patch. The new scheme would come with some restrictions: the use of category properties to effect instantaeous global changes to syntax-table text properties throughout a buffer would have to be deprecated (i.e. forbidden). CC Mode currently does this. Setting `inhibit-modification-hooks' non-nil and making substantive buffer changes would likewise be taboo. There may be other minor restrictions. Because of this, it might be an idea to make the new comment handling optional (default on). -- Alan Mackenzie (Nuremberg, Germany).