From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: emacs rendering comparisson between emacs23 and emacs26.3 Date: Sun, 5 Apr 2020 13:27:25 +0000 Message-ID: <20200405132725.GC5049@ACM> References: <83h7y63sjj.fsf@gnu.org> <834ku43c61.fsf@gnu.org> <83k12zz6ds.fsf@gnu.org> <054393f3-3873-ab6e-b325-0eca354d8838@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="51882"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eliz@gnu.org, rrandresf@gmail.com, rms@gnu.org, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 05 15:31:33 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jL5N7-000DRP-1f for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Apr 2020 15:31:33 +0200 Original-Received: from localhost ([::1]:47966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jL5N6-00079f-5V for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Apr 2020 09:31:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55303) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jL5JE-00048x-Dr for emacs-devel@gnu.org; Sun, 05 Apr 2020 09:27:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jL5JD-0001zf-8g for emacs-devel@gnu.org; Sun, 05 Apr 2020 09:27:32 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:27330 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1jL5JC-0001vm-Vx for emacs-devel@gnu.org; Sun, 05 Apr 2020 09:27:31 -0400 Original-Received: (qmail 11039 invoked by uid 3782); 5 Apr 2020 13:27:29 -0000 Original-Received: from acm.muc.de (p2E5D5461.dip0.t-ipconnect.de [46.93.84.97]) by localhost.muc.de (tmda-ofmipd) with ESMTP; Sun, 05 Apr 2020 15:27:25 +0200 Original-Received: (qmail 7121 invoked by uid 1000); 5 Apr 2020 13:27:25 -0000 Content-Disposition: inline In-Reply-To: <054393f3-3873-ab6e-b325-0eca354d8838@gmx.at> 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 [fuzzy] X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:246453 Archived-At: Hello, Martin. On Fri, Apr 03, 2020 at 08:59:54 +0200, martin rudalics wrote: [ .... ] > 'open-paren-in-column-0-is-defun-start', if non-nil, conceptually allows > progmodes to avoid scanning an entire buffer in order to get things like > syntax highlighting and code indenting right. Rather, progmodes are > allowed to find the first or next paren in column zero wrt a given > position and base further decisions on the assumption that such a paren > is on the "top level" of its buffer. > Recent Emacsen either ignore that variable or silently reset it to nil > internally so it doesn't get into their way. Correction to my recent posts here. o-p-i-c-0-i-d-s still exists and can still work. Currently, its operation is blocked by the variable comment-use-syntax-ppss being non-nil. I'm not sure what this variable is for (it was introduced in: commit 14b95587520959c5b54356547a0a69932a9bb480 Author: Stefan Monnier Date: Tue Dec 12 23:03:00 2017 -0500 * src/syntax.c (find_defun_start): Use syntax-ppss (syms_of_syntax): New variable comment-use-syntax-ppss. ), but setting it to nil does indeed reenable the o-p-i-c-0-i-d-s behaviour. :-) [ .... ] > So since you earlier asked for "a switch to turn off the changes" then > my answer is that such a switch already exists but has been deactivated. Please try setting comment-use-syntax-ppss to nil. > martin -- Alan Mackenzie (Nuremberg, Germany).