From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.bugs Subject: bug#25030: 25.1; Unexpected indentation and syntax-highlighting in `emacs-lisp-mode' Date: Sun, 18 Mar 2018 19:53:37 +0000 Message-ID: <868taptb26.fsf@gmail.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1521402735 28195 195.159.176.226 (18 Mar 2018 19:52:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 18 Mar 2018 19:52:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (windows-nt) To: 25030@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 18 20:52:10 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1exeLi-0007F4-9D for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Mar 2018 20:52:10 +0100 Original-Received: from localhost ([::1]:39021 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exeNl-0007vb-ES for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Mar 2018 15:54:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exeNZ-0007vM-JU for bug-gnu-emacs@gnu.org; Sun, 18 Mar 2018 15:54:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1exeNW-00085y-H2 for bug-gnu-emacs@gnu.org; Sun, 18 Mar 2018 15:54:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60710) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1exeNW-00085o-Dg for bug-gnu-emacs@gnu.org; Sun, 18 Mar 2018 15:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1exeNW-0005l9-6H for bug-gnu-emacs@gnu.org; Sun, 18 Mar 2018 15:54:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Andy Moreton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Mar 2018 19:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25030 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.152140283922130 (code B ref -1); Sun, 18 Mar 2018 19:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Mar 2018 19:53:59 +0000 Original-Received: from localhost ([127.0.0.1]:40374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1exeNT-0005ks-1q for submit@debbugs.gnu.org; Sun, 18 Mar 2018 15:53:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49759) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1exeNR-0005kd-1L for submit@debbugs.gnu.org; Sun, 18 Mar 2018 15:53:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1exeNL-0007z3-3g for submit@debbugs.gnu.org; Sun, 18 Mar 2018 15:53:51 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52730) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1exeNL-0007yv-0Q for submit@debbugs.gnu.org; Sun, 18 Mar 2018 15:53:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exeNJ-0007uY-UW for bug-gnu-emacs@gnu.org; Sun, 18 Mar 2018 15:53:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1exeNG-0007wg-TW for bug-gnu-emacs@gnu.org; Sun, 18 Mar 2018 15:53:50 -0400 Original-Received: from [195.159.176.226] (port=40010 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1exeNG-0007vI-Lu for bug-gnu-emacs@gnu.org; Sun, 18 Mar 2018 15:53:46 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1exeLA-0006Y8-Ra for bug-gnu-emacs@gnu.org; Sun, 18 Mar 2018 20:51:36 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 35 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:obsJMClu7868MFJ0A9kScS8hjvM= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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" Xref: news.gmane.org gmane.emacs.bugs:144390 Archived-At: On Sun 27 Nov 2016, Philipp Stephani wrote: > Klaus-Dieter Bauer schrieb am Sa., 26. Nov. > 2016 um 00:13 Uhr: > >> Hello! >> >> In `emacs-lisp-mode', the counting of the nesting level of forms seems >> to be broken in some subtle way. Consider e.g. >> >> (form >> ( >> ) WEIRD HIGHLIGHT >> x) ;; Unexepected Indentation >> >> It looks like "WEIRD HIGHLIGHT" is wrongly highlighted as junk after a >> surplus closing parenthesis, and the subsequent form is also weirdly >> indented. >> >> > This is working as intended (i.e. not a bug). Lisp-mode explicitly tests > for this. When you hover over the highlighted part, you get a tooltip > "Hidden behind deeper element; move to another line?" > While not a syntax error, there's such a strong convention to avoid such > formatting that the Lisp modes warn unconditionally about it. This may not be a bug, but it is certainly a mis-feature. Warning should be reserved for syntax which may have unintended or surprising semantics. Indentation that does not follow a convention is not wrong either systacically or semantically. Please remove this broken mis-feature. AndyM