bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22757: Reply to correspondence dated February 22, 2016.


From: Eli Zaretskii
Subject: bug#22757: Reply to correspondence dated February 22, 2016.
Date: Mon, 22 Feb 2016 21:25:44 +0200

> Date:  Mon, 22 Feb 2016 10:15:27 -0800
> From:  Keith David Bershatsky <address@hidden>
> Cc:  address@hidden
> 
> I agree that `get-char-property` is the key ingredient, and it would be 
> prudent to steer users to that function.  It does, however, require an 
> advanced level of Lisp expertise to understand how to use it to achieve 
> certain goals.  I probably wouldn't have been able to figure out (in a 
> reasonable period of time) how to get foreground/background at point without 
> standing on the shoulders of others -- e.g., `foreground-color-at-point` and 
> `background-color-at-point`.

get-char-property gets you the face, and then face-foreground and
face-background (both documented in the ELisp manual) can be used to
get the colors.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]