[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding new variable for face-list in internal-make-lisp-face.
From: |
Eli Zaretskii |
Subject: |
Re: Adding new variable for face-list in internal-make-lisp-face. |
Date: |
Sat, 04 Nov 2017 10:05:37 +0200 |
> Date: Fri, 03 Nov 2017 15:01:34 -0700
> From: Keith David Bershatsky <address@hidden>
> Cc: address@hidden
>
> I have a tab buffer-display-table entry that looks like:
>
> [(187 . 120) (9 . 121)]
>
> Your suggestion to use GLYPH_FACE would be more efficient than my using the C
> equivalent of:
>
> (aref buffer-display-table ?\t)
>
> ... and then iterating over the vector elements looking for a cons cell
> containing the number 9.
>
> I will work on incorporating GLYPH_FACE into my code, instead of using the
> above iteration. Thank you for the suggestion.
>
> Once the face id is obtained, I have been using C implementations of the
> following:
I believe I already explained how to get the fore- and back-ground
colors of a face given its ID in my message Re: Can we use FRAME_RIF
to return a Lisp_Object result? I think you should use the same
technique here.