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#16526: 24.3.50; scroll-conservatively & c-mode regression Date: Sun, 6 Jul 2014 13:48:40 +0000 Message-ID: <20140706134840.GA3510@acm.acm> References: <20140629144151.GD2948@acm.acm> <53B03876.9070307@gmx.at> <20140629174953.GE2948@acm.acm> <53B117D6.1050306@gmx.at> <20140702200522.GB3823@acm.acm> <20140704182709.GA3535@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1404654877 8726 80.91.229.3 (6 Jul 2014 13:54:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Jul 2014 13:54:37 +0000 (UTC) Cc: 16526@debbugs.gnu.org To: Stefan Monnier , martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 06 15:54: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 1X3mth-0005QO-BM for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Jul 2014 15:54:29 +0200 Original-Received: from localhost ([::1]:46059 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3mth-0008Va-1U for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Jul 2014 09:54:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3mtW-0008VQ-Hz for bug-gnu-emacs@gnu.org; Sun, 06 Jul 2014 09:54:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X3mtP-0002Rz-10 for bug-gnu-emacs@gnu.org; Sun, 06 Jul 2014 09:54:18 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53416) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3mtG-0002RR-Tf; Sun, 06 Jul 2014 09:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X3mtG-0005Cy-BO; Sun, 06 Jul 2014 09:54:02 -0400 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: Sun, 06 Jul 2014 13:54:02 +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-submit@debbugs.gnu.org id=B16526.140465480119950 (code B ref 16526); Sun, 06 Jul 2014 13:54:02 +0000 Original-Received: (at 16526) by debbugs.gnu.org; 6 Jul 2014 13:53:21 +0000 Original-Received: from localhost ([127.0.0.1]:44566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X3msa-0005Bf-OZ for submit@debbugs.gnu.org; Sun, 06 Jul 2014 09:53:21 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:10847 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X3msX-0005BQ-Bf for 16526@debbugs.gnu.org; Sun, 06 Jul 2014 09:53:18 -0400 Original-Received: (qmail 84844 invoked by uid 3782); 6 Jul 2014 13:53:15 -0000 Original-Received: from acm.muc.de (pD9518DBE.dip0.t-ipconnect.de [217.81.141.190]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 06 Jul 2014 15:53:13 +0200 Original-Received: (qmail 14080 invoked by uid 1000); 6 Jul 2014 13:48:40 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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.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:91238 Archived-At: Hello, Stefan. On Fri, Jul 04, 2014 at 10:23:07PM -0400, Stefan Monnier wrote: > > OK, the initialization needs to be after the "lossage:" label, > > of course. Try the patch below instead, > Well, I installed the patch since it does speed up my test case > noticeably (M-> followed by in src/xdisp.c). Excellent! Hello, Martin, how far does this patch go, from your point of view, in solving the sluggishness in xdisp.c? > I do have a question about open-paren-in-column-0-is-defun-start: why do > you let-bind it at various places instead of setting it buffer-locally > once and for all. Misunderstanding/lack of documentation. My aim was to restrict the effect of binding open-paren-etc to nil to its supposed "subsidiary" effects in scan-lists, leaving the "main" higher level effects unchanged from the user's setting (or lack thereof). > I see you had such a buffer-local setting but that you commented it out > in 2006/12/17. Do you remember what was the reason for it? I've had a look at the thread "Mysterious fontification/C++ context issue - Patch for beginning-of-defun-raw." in emacs-devel which started around 2006-12-04. It's long and rambling and most of the posts are heavily context dependent, making it difficult to follow. > >>From my naive point of view a buffer-local setting would not only be > simpler but would also be better for the user who could more easily set > it back to non-nil if she wanted to. How about going back to Martin's suggestion, and letting the user decide on the variable's setting? Trouble is, open-paren-etc's system-wide default is t, whereas here it really wants to be nil - parens which just happen to be in column 0 are not that uncommon. The crude way would be to introduce c-open-paren-in-column-0-is-defun-start, but this has problems of its own. How, in general, can we cleanly give a user option a mode specific default? > Stefan -- Alan Mackenzie (Nuremberg, Germany).