all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 13250@debbugs.gnu.org
Subject: bug#13250: 24.3.50; Add a way to show pre-highlighted candidates in completions buffer
Date: Sat, 29 Dec 2012 00:29:30 -0500	[thread overview]
Message-ID: <jwvip7ll9zs.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <50D8002C.5080401@yandex.ru> (Dmitry Gutov's message of "Mon, 24 Dec 2012 11:11:40 +0400")

> It would have to be a different function and metadata property, no?

Could be.

> I don't think we can change annotation-function to return the candidate plus
> annotation, for example.

Currently it can only return a string (which is combined with the
completion into a cons cell), but we could let it return the cons cell
directly.  That wouldn't necessarily help with "annotations before" (and
it wouldn't make sure that the annotations don't actually change
the completions).

> So, AFAICT, the proper solution would be to walk the part of the string,
> look at every piece in it that has a different value of 'face, then where
> the value is a symbol, wrap it into a list, and then add the new face to the
> end of the lists. And repeat for the "first difference".

Yes.  Lars wanted to add a function that does just that, but you can use
font-lock-prepend-text-property in the mean time.


        Stefan





  reply	other threads:[~2012-12-29  5:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvip7ll9zs.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=13250@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.