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#21871: Emacs Lisp Mode (at least): spurious parens in column 0 don't get bold red highlighting. Date: 12 Nov 2015 12:44:49 -0000 Organization: muc.de e.V. Message-ID: <20151112124449.55828.qmail@mail.muc.de> References: <20151110163034.GH2626@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1447332414 13215 80.91.229.3 (12 Nov 2015 12:46:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Nov 2015 12:46:54 +0000 (UTC) Cc: Alan Mackenzie To: 21871@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 12 13:46:39 2015 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 1ZwrGX-0004LE-1a for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Nov 2015 13:46:13 +0100 Original-Received: from localhost ([::1]:46313 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwrGW-0004hD-Bb for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Nov 2015 07:46:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwrGR-0004eR-KY for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2015 07:46:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZwrGM-0006GI-R1 for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2015 07:46:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwrGM-0006GE-Nz for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2015 07:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZwrGM-0000KK-E9 for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2015 07:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Nov 2015 12:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21871 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21871-submit@debbugs.gnu.org id=B21871.14473323111193 (code B ref 21871); Thu, 12 Nov 2015 12:46:02 +0000 Original-Received: (at 21871) by debbugs.gnu.org; 12 Nov 2015 12:45:11 +0000 Original-Received: from localhost ([127.0.0.1]:34163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZwrFX-0000JB-3m for submit@debbugs.gnu.org; Thu, 12 Nov 2015 07:45:11 -0500 Original-Received: from mail.muc.de ([193.149.48.3]:35685) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZwrFC-0000IC-Qj for 21871@debbugs.gnu.org; Thu, 12 Nov 2015 07:45:09 -0500 Original-Received: (qmail 55829 invoked by uid 3782); 12 Nov 2015 12:44:49 -0000 In-Reply-To: X-Newsgroups: gnu.emacs.bug User-Agent: tin/2.3.1-20141224 ("Tallant") (UNIX) (FreeBSD/10.1-RELEASE-p16 (amd64)) 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: 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:108648 Archived-At: In article you wrote: > 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. > 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. Thinking about it, this is surely a bug in the documentation. The only way Font Lock (or anything else) could pick out an offending paren would be to scan a buffer from BOB. This would rather defeat the point of the paren in column 0 convention. I'll patch the doc. -- Alan Mackenzie (Nuremberg, Germany).