GNU bug report logs - #74673
30.0.92; face warning on legal elisp syntax

Previous Next

Package: emacs;

Reported by: Christopher Howard <christopher <at> librehacker.com>

Date: Tue, 3 Dec 2024 18:50:01 UTC

Severity: normal

Found in version 30.0.92

Done: Christopher Howard <christopher <at> librehacker.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Christopher Howard <christopher <at> librehacker.com>, 74673 <at> debbugs.gnu.org
Subject: bug#74673: 30.0.92; face warning on legal elisp syntax
Date: Wed, 04 Dec 2024 18:12:06 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Christopher Howard <christopher <at> librehacker.com>
>> Cc: 74673 <at> debbugs.gnu.org
>> Date: Tue, 03 Dec 2024 11:48:19 -0900
>> 
>> Eli Zaretskii <eliz <at> gnu.org> writes:
>> 
>> > Move the mouse pointer there and wait for a split-second: you will see
>> > the answer in a tooltip.
>> >
>> 
>> Is there a way to view tooltips without making any use of the mouse? I see that I can get tooltips displayed in the echo area, but apparently I still must utilize the mouse to see the tooltip in the first place.
>
> Some nice features of the UI need the mouse, yes, and there's no
> (easy) way around that.  That said, you can go to the "" part and type
> "M-x describe-text-properties", which will pop a buffer that tells you
> there's a help-echo property at that spot, and show a button which you
> could press to have the text shown in the echo-area.
>
> If you really need to be able to show tool tips without the mouse, you
> can write a simple function to show its text in the echo-area.
> However, most tooltips are shown on UI parts where you cannot go, so
> such a command will be of somewhat limited use.

Apologies if I missed something: this specific diagnostic is also
visible with 'C-h .', right?

Feeling like this is worth mentioning because IME a lot of "mouse-bound"
information is actually reachable with display-local-help; though of
course describe-text-properties is definitely a useful tool to have in
one's kit (I usually reach for 'C-u C-x =' FWIW).

>> >> (2) should we consider using a distinct face for style warnings?
>> >
>> > What's wrong with font-lock-warning-face?
>> >
>> 
>> In my mind, a style warning is significantly different from a warning about somethat that might cause my code to malfunction when run or compiled. If there was a face specific to style warnings, I would make it a distinct and less dramatic face appearance.
>
> It's the same case: we show this in the warning face because
> oftentimes this is a mistaken code, because it's easy to misinterpret.

(IMHO the flymake-warning face (wavy underline) would be less
surprising; in fact I find this style check being part of the "regular"
font-locking a bit surprising too, this is the kind of opt-in linting
I'd expect of flymake 🤷)




This bug report was last modified 210 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.