GNU bug report logs -
#25030
elisp: highlighting of unexpected indentation should use separate face from highlight of error functions
Previous Next
Full log
Message #18 received at submit <at> debbugs.gnu.org (full text, mbox):
On Sun 27 Nov 2016, Philipp Stephani wrote:
> Klaus-Dieter Bauer <bauer.klaus.dieter <at> 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.
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
This bug report was last modified 3 years and 161 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.