GNU bug report logs -
#22757
25.1.50; `face-at-point` and `faces--attribute-at-point` -- add argument WINDOW-OR-BUFFER
Previous Next
Reported by: Keith David Bershatsky <esq <at> lawlist.com>
Date: Sun, 21 Feb 2016 18:06:01 UTC
Severity: wishlist
Tags: wontfix
Found in version 25.1.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Date: Sun, 21 Feb 2016 10:05:33 -0800
> From: Keith David Bershatsky <esq <at> lawlist.com>
>
> As a feature request, please consider adding an additional argument to `face-at-point` and `faces--attribute-at-point` to support WINDOW-OR-BUFFER with `get-char-property`; and, add that to the sections of code in said functions containing `get-char-property`. The doc-strings would need to be updated to explain the difference. The default would be BUFFER.
>
> It is sometimes useful to be able to obtain a face of an overlay that is associated with a particular window -- e.g., an active region that may be different in each window. The current functions do not have the ability to test for that occurrence because the third argument of `get-char-property` is always `nil`.
Why can't you call get-char-property directly? face-at-point is
nothing more than a thin wrapper around get-char-property, and most of
the wrapper code is about stuff you don't care about AFAIU from your
description.
Is there something I'm missing?
Thanks.
This bug report was last modified 3 years and 111 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.