--- Begin Message ---
Subject: |
24.3.50; Add a way to show pre-highlighted candidates in completions buffer |
Date: |
Fri, 21 Dec 2012 23:42:19 +0400 |
When I return the list of candidates from the "completion table"
function, I'd like to be able the specify the base (not user-defined)
highlighting, so that the actual candidate text looks more visible (as
opposed to the annotations) and easy to scan. In my case, the candidates
are method names and the annotations are argument lists, so using
font-lock-function-name-face is natural.
But if I propertize the list with 'font-lock-face properties, both the
"common" part and the "first difference" are still colored black,
because the completion code uses the hardcoded faces for them, one of
which inherits from `default', another from `bold'. Screenshot attached.
Can we change this so that those faces override the face attributes only
if they've been explicitly customized (as opposed to inherited from
`default')?
Is it possible to do that in a backwards-compatible way? With overlays,
maybe?
completion-faces.png
Description: completion buffer
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#13250: 24.3.50; Add a way to show pre-highlighted candidates in completions buffer |
Date: |
Tue, 05 Mar 2013 12:04:20 +0400 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 |
On 04.03.2013 18:36, Stefan Monnier wrote:
Do you see any problems in the patch I sent for this bug in the
previous message?
I'm not sure what impact it might have on speed, but I think the
principle is fine, so go ahead,
Thanks, installed.
--- End Message ---