GNU bug report logs - #57087
29.0.50; (face-at-point nil t) does not return all faces when hl-line-mode is active

Previous Next

Package: emacs;

Reported by: dalanicolai <dalanicolai <at> gmail.com>

Date: Tue, 9 Aug 2022 18:56:02 UTC

Severity: normal

Tags: notabug

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #10 received at control <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: dalanicolai <dalanicolai <at> gmail.com>
Cc: 57087 <at> debbugs.gnu.org
Subject: Re: bug#57087: 29.0.50;
 (face-at-point nil t) does not return all faces when hl-line-mode is
 active
Date: Tue, 09 Aug 2022 22:20:48 +0300
tags 57087 notabug
thanks

> From: dalanicolai <dalanicolai <at> gmail.com>
> Date: Tue, 9 Aug 2022 20:55:13 +0200
> 
> Open some elisp (.el) buffer, place the cursor on some fontified keyword
> (e.g. 'defun') and do `M-: (face-at-point nil t)`. Now activate `(M-x)
> hl-line-mode` and again do `M-: (face-at-point nil t)`. The list shows
> only the `hl-line` face, while the function its docstring says it should
> return multiple faces.

This is a misunderstanding of what the doc string means when it says
"faces".  It doesn't mean that you should see more than one face in
the above situation.

This is not a bug, it's just that your expectations from what
face-at-point can do are incorrect.




This bug report was last modified 2 years and 282 days ago.

Previous Next


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