GNU bug report logs -
#18163
elisp: highlighting of unexpected indentation should use separate face from highlight of error functions
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Fri, 1 Aug 2014 04:25:02 UTC
Severity: wishlist
Merged with 25030
Found in versions 25.1, 24.4.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18163 in the body.
You can then email your comments to 18163 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18163
; Package
emacs
.
(Fri, 01 Aug 2014 04:25:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Drew Adams <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 01 Aug 2014 04:25:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Recipe from emacs -Q: Type this into an Emacs-Lisp mode buffer:
(defun foo ()
(condition-case nil
(let ((toto (lambda (cand)
(foo)) bar)))
(quit (tutu))))
The text "bar)))" is highlighted erroneously, with face
`font-lock-warning-face'. It should not be highlighted at all.
If you add more right-parens, or any other text, at the end of the same
line as the warning-highlighted text, it too has that red face. It
does not seem to matter what text you add. You can remove all of the
warning-face text except the `b' (or any other char in place of `b'),
and it is still highlighted. You can remove the SPC before the `b'
and it remains highlighted. If you remove the whitespace before
"(foo..." on the same line, the highlighting remains.
If you remove the newline before the "(foo..." line then the
highlighting goes away.
The first build where I see this regression is this one:
In GNU Emacs 24.4.50.1 (i686-pc-mingw32)
of 2014-04-25 on ODIEONE
Repository revision: 117024 monnier <at> iro.umontreal.ca-20140425192226-frpjpmgs0r8ad9wc
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --prefix=/c/Devel/emacs/snapshot/trunk
--enable-checking=yes,glyphs 'CFLAGS=-O0 -g3'
LDFLAGS=-Lc:/Devel/emacs/lib 'CPPFLAGS=-DGC_MCHECK=1
-Ic:/Devel/emacs/include''
The last build I have where there is not this regression is this one:
In GNU Emacs 24.4.50.1 (i686-pc-mingw32)
of 2014-04-21 on ODIEONE
Repository revision: 117005 dancol <at> dancol.org-20140421180019-po4wdeg7gqvvlh5d
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --prefix=/c/Devel/emacs/snapshot/trunk
--enable-checking=yes,glyphs 'CFLAGS=-O0 -g3'
LDFLAGS=-Lc:/Devel/emacs/lib 'CPPFLAGS=-DGC_MCHECK=1
-Ic:/Devel/emacs/include''
This is the build I'm sending this report from:
In GNU Emacs 24.4.50.1 (i686-pc-mingw32)
of 2014-06-28 on ODIEONE
Bzr revision: 117431 rgm <at> gnu.org-20140628015517-eku6hj8mpgcvfnso
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --prefix=/c/Devel/emacs/snapshot/trunk
--enable-checking=yes,glyphs 'CFLAGS=-O0 -g3'
LDFLAGS=-Lc:/Devel/emacs/lib 'CPPFLAGS=-DGC_MCHECK=1
-Ic:/Devel/emacs/include''
Added tag(s) notabug.
Request was from
Stefan Monnier <monnier <at> iro.umontreal.ca>
to
control <at> debbugs.gnu.org
.
(Wed, 06 Aug 2014 17:16:01 GMT)
Full text and
rfc822 format available.
Reply sent
to
Stefan Monnier <monnier <at> iro.umontreal.ca>
:
You have taken responsibility.
(Wed, 06 Aug 2014 17:16:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Drew Adams <drew.adams <at> oracle.com>
:
bug acknowledged by developer.
(Wed, 06 Aug 2014 17:16:03 GMT)
Full text and
rfc822 format available.
Message #12 received at 18163-done <at> debbugs.gnu.org (full text, mbox):
tags 18163 notabug
thanks
> The text "bar)))" is highlighted erroneously, with face
> `font-lock-warning-face'.
It's no error. There's even a help-text explaining why it's highlighted
this way (if you hover your mouse above the highlighted text).
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18163
; Package
emacs
.
(Wed, 06 Aug 2014 18:05:03 GMT)
Full text and
rfc822 format available.
Message #15 received at 18163-done <at> debbugs.gnu.org (full text, mbox):
> It's no error. There's even a help-text explaining why it's highlighted
> this way (if you hover your mouse above the highlighted text).
I see. Yes, I can see that that can be helpful.
It's unfortunate that the same face is used for this kind of warning
and for things like `error' and `user-error', which are not something
to be warned about. It is handy to highlight those too (specially),
but they should not use a "warning" face, if that face is really
starting to be used to warn.
IOW using `font-lock-warning-face' to warn uncovers an (effectively
new) bug: its use for non-warnings is inappropriate. It could
arguably have been considered appropriate (though poorly named) as
long as none of the uses involved warning. There is no longer any
such justification.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18163
; Package
emacs
.
(Thu, 07 Aug 2014 03:49:01 GMT)
Full text and
rfc822 format available.
Message #18 received at 18163 <at> debbugs.gnu.org (full text, mbox):
On 2014-08-06 13:15 -0400, Stefan Monnier wrote:
> It's no error. There's even a help-text explaining why it's highlighted
> this way (if you hover your mouse above the highlighted text).
Maybe the face can be tweaked to improve usability, for example,
underwave/line it.
Leo
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 04 Sep 2014 11:24:03 GMT)
Full text and
rfc822 format available.
bug unarchived.
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Mon, 19 Mar 2018 23:54:02 GMT)
Full text and
rfc822 format available.
Merged 18163 25030.
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Mon, 19 Mar 2018 23:54:02 GMT)
Full text and
rfc822 format available.
Changed bug title to 'elisp: highlighting of unexpected indentation should use separate face from highlight of error functions' from '24.4.50; REGRESSION, font-lock in `emacs-lisp-mode': spurious `font-lock-warning-face''
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Thu, 22 Mar 2018 02:39:02 GMT)
Full text and
rfc822 format available.
Severity set to 'wishlist' from 'minor'
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Thu, 22 Mar 2018 02:39:03 GMT)
Full text and
rfc822 format available.
Removed tag(s) wontfix and notabug.
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Thu, 22 Mar 2018 02:39:03 GMT)
Full text and
rfc822 format available.
Did not alter fixed versions and reopened.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 22 Mar 2018 02:39:03 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
25030 <at> debbugs.gnu.org and Klaus-Dieter Bauer <bauer.klaus.dieter <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 12 Feb 2022 08:55:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 12 Mar 2022 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 43 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.