From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#25030: 25.1; Unexpected indentation and syntax-highlighting in `emacs-lisp-mode' Date: Sun, 27 Nov 2016 20:38:42 +0000 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bb04050e8d88405424e57d8 X-Trace: blaine.gmane.org 1480279156 1016 195.159.176.226 (27 Nov 2016 20:39:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 27 Nov 2016 20:39:16 +0000 (UTC) To: Klaus-Dieter Bauer , 25030@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 27 21:39:13 2016 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 1cB6EC-00088J-Qk for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Nov 2016 21:39:13 +0100 Original-Received: from localhost ([::1]:55540 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cB6EG-0000wt-F3 for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Nov 2016 15:39:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cB6E7-0000vr-MA for bug-gnu-emacs@gnu.org; Sun, 27 Nov 2016 15:39:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cB6E2-0005li-PQ for bug-gnu-emacs@gnu.org; Sun, 27 Nov 2016 15:39:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56728) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cB6E2-0005lR-KB for bug-gnu-emacs@gnu.org; Sun, 27 Nov 2016 15:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cB6E2-00030u-9O for bug-gnu-emacs@gnu.org; Sun, 27 Nov 2016 15:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Nov 2016 20:39: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: Original-Received: via spool by 25030-submit@debbugs.gnu.org id=B25030.148027914011577 (code B ref 25030); Sun, 27 Nov 2016 20:39:02 +0000 Original-Received: (at 25030) by debbugs.gnu.org; 27 Nov 2016 20:39:00 +0000 Original-Received: from localhost ([127.0.0.1]:43894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cB6E0-00030f-Gn for submit@debbugs.gnu.org; Sun, 27 Nov 2016 15:39:00 -0500 Original-Received: from mail-wj0-f177.google.com ([209.85.210.177]:33889) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cB6Dz-00030T-6F for 25030@debbugs.gnu.org; Sun, 27 Nov 2016 15:38:59 -0500 Original-Received: by mail-wj0-f177.google.com with SMTP id mp19so99718334wjc.1 for <25030@debbugs.gnu.org>; Sun, 27 Nov 2016 12:38:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=st9XS58PGlNVEGkEM6RmTdlekfPopiR2i7Yes3YH6Vk=; b=AYCZEKTNuft6aTZWmfXxPGQK4OnvsVAyjI4mfx1ApzI0nEUDmCz5mRB/+8cMIitJTY 9WT+9CCmdDU2TcSMgIVxbpx6oBwM5tP85F7aGfjmrLeSxKxkyh62pf4LVhO2bMV2WC2B wW1+VFwjWJke+gy5uO9z1TYUSwH3Au0CrhZSPbNdnplOB7yq6goeA80lQctDPVCqmY6Z vlyUsfgN63eh3HhLlIBXNvaUDjV414CkqT09BYtrHgbtxr+Ii9GzajTUKaZsic0aSA5P KYQybtTGxxwvuI0jc/HN7Lcd1N1FDl0Iw2//o34hpIEirlmGLGHLWHmScHDdLRCHmIf/ pV9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=st9XS58PGlNVEGkEM6RmTdlekfPopiR2i7Yes3YH6Vk=; b=SvZN277onAdQCK59ll0NVVLqdyGendNJAHQva7rTv/NhEPdPEJrY5eBgjaDSv2y4r5 wJIP6CP7HU69WVr6OCwXJZ8WB4+r9xrX/rlJ76WXlMpOFurDm9T2pTrQYkrtrJzaX5Ve wQ3P5aV67myAllajpmoGCrP9M8Vwuvx8bYnRo80IBQNH1Fa9ykNg7I3nlc94FMhYlWPs E7bpsRO5D4jx4dEcG3Ebrgvw+diQTOL2bahYhsXl2bZQ8EhwNSX4CyJoaS6dNNHENTpf hhn6DGjYRkVSCVHFzmmpFbSQPcfqAAFM9SuUJ7/AjzVBFx3BYOqhgdGGN4Zqh983byO1 9+WA== X-Gm-Message-State: AKaTC01HCgJGZ2/QfMCvLVXurlxfC2im7DxGQ4CIuG+JmxJBdvGtmR/BuQ5uK37iQlVHoQfhvdLnMe3VlUrGlQ== X-Received: by 10.194.95.35 with SMTP id dh3mr15417105wjb.141.1480279133310; Sun, 27 Nov 2016 12:38:53 -0800 (PST) In-Reply-To: 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:126192 Archived-At: --047d7bb04050e8d88405424e57d8 Content-Type: text/plain; charset=UTF-8 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. --047d7bb04050e8d88405424e57d8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


Klaus-= Dieter Bauer <bauer.klau= s.dieter@gmail.com> schrieb am Sa., 26. Nov. 2016 um 00:13=C2=A0Uhr:=
Hello!

In `emacs-lisp-mode', the countin= g of the nesting level of forms seems
<= div class=3D"gmail_msg">to be broken in some subtle way. Consider e.g.

=C2=A0 =C2=A0 (form
=C2=A0 =C2=A0 =C2=A0(
=C2=A0 =C2=A0 =C2=A0 ) WEIRD HIGH= LIGHT
=C2=A0 =C2=A0 =C2=A0 =C2=A0 x) ;; Unexepected Inden= tation

It look= s like "WEIRD HIGHLIGHT" is wrongly highlighted as junk after a
surplus closing parenthesis, and the subsequent form is al= so weirdly
indented.


This = is working as intended (i.e. not a bug). Lisp-mode explicitly tests for thi= s. When you hover over the highlighted part, you get a tooltip "Hidden= behind deeper element; move to another line?"=C2=A0
While n= ot a syntax error, there's such a strong convention to avoid such forma= tting that the Lisp modes warn unconditionally about it.
--047d7bb04050e8d88405424e57d8--