bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#25030: 25.1; Unexpected indentation and syntax-highlighting in `emac


From: Philipp Stephani
Subject: bug#25030: 25.1; Unexpected indentation and syntax-highlighting in `emacs-lisp-mode'
Date: Sun, 27 Nov 2016 20:38:42 +0000



Klaus-Dieter Bauer <bauer.klaus.dieter@gmail.com> 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]