From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#21871: Emacs Lisp Mode (at least): spurious parens in column 0 don't get bold red highlighting. Date: Mon, 20 Sep 2021 17:50:03 +0000 Message-ID: References: <20151110163034.GH2626@acm.fritz.box> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39390"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 21871@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 20 19:59:13 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1mSNZR-0009vT-5v for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Sep 2021 19:59:13 +0200 Original-Received: from localhost ([::1]:39946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSNZQ-000865-2m for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Sep 2021 13:59:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSNRW-00032b-V0 for bug-gnu-emacs@gnu.org; Mon, 20 Sep 2021 13:51:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60663) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mSNRW-0000ro-MM for bug-gnu-emacs@gnu.org; Mon, 20 Sep 2021 13:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mSNRW-0006iF-H5 for bug-gnu-emacs@gnu.org; Mon, 20 Sep 2021 13:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Sep 2021 17:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21871 X-GNU-PR-Package: emacs Original-Received: via spool by 21871-submit@debbugs.gnu.org id=B21871.163216021325724 (code B ref 21871); Mon, 20 Sep 2021 17:51:02 +0000 Original-Received: (at 21871) by debbugs.gnu.org; 20 Sep 2021 17:50:13 +0000 Original-Received: from localhost ([127.0.0.1]:43976 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSNQi-0006gp-Po for submit@debbugs.gnu.org; Mon, 20 Sep 2021 13:50:12 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:56736 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1mSNQh-0006gQ-4i for 21871@debbugs.gnu.org; Mon, 20 Sep 2021 13:50:12 -0400 Original-Received: (qmail 57184 invoked by uid 3782); 20 Sep 2021 17:50:03 -0000 Original-Received: from acm.muc.de (p4fe15b15.dip0.t-ipconnect.de [79.225.91.21]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 20 Sep 2021 19:50:03 +0200 Original-Received: (qmail 15687 invoked by uid 1000); 20 Sep 2021 17:50:03 -0000 Content-Disposition: inline In-Reply-To: X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:214879 Archived-At: Hello, Stefan. On Sun, Sep 19, 2021 at 15:14:18 -0700, Stefan Kangas wrote: > Alan Mackenzie writes: > > Hello, Emacs. > > In the Emacs manual page "Left Margin Paren", it says that: > > To help you catch violations of this convention, Font Lock mode > > highlights confusing opening delimiters (those that ought to be quoted) > > in bold red. > > , where "this convention" is the convention of not putting opening parens > > in column 0 when they aren't at the beginning of defuns. > > In Emacs Lisp Mode, this highlighting isn't done. It isn't in CC Mode, > > either. > The above text no longer exists, and in Emacs 27.1 or later, we no > longer treat an unescaped ( in column zero in a docstring as the > beginning of a defun. (See `(elisp) Documentation Tips', final > paragraph.) > So should this bug be closed, or is there anything more to do here? I would say it should definitely be closed, the fix that has been implemented being far and away better than that anticipated by the bug report. :-) > > This is either a bug in the code, or a bug in the documentation. I > > rather tend to the view that this bold red highlighting should be done > > when open-paren-in-column-0-is-defun-start is non-nil. I think it did, > > at one stage, but searching the emacs-devel archives doesn't reveal what > > happened. -- Alan Mackenzie (Nuremberg, Germany).