unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13250: 24.3.50; Add a way to show pre-highlighted candidates in completions buffer
@ 2012-12-21 19:42 Dmitry Gutov
  2012-12-24  5:03 ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Dmitry Gutov @ 2012-12-21 19:42 UTC (permalink / raw)
  To: 13250

[-- Attachment #1: Type: text/plain, Size: 902 bytes --]

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?


[-- Attachment #2: completion buffer --]
[-- Type: image/png, Size: 7524 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-03-05  8:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-21 19:42 bug#13250: 24.3.50; Add a way to show pre-highlighted candidates in completions buffer Dmitry Gutov
2012-12-24  5:03 ` Stefan Monnier
2012-12-24  7:11   ` Dmitry Gutov
2012-12-29  5:29     ` Stefan Monnier
2013-01-12  3:45       ` Dmitry Gutov
2013-03-04  7:39         ` Dmitry Gutov
2013-03-04 14:36           ` Stefan Monnier
2013-03-05  8:04             ` Dmitry Gutov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).