all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Make highlight-symbol.el perfect?
Date: Thu, 11 Apr 2013 20:54:10 -0400	[thread overview]
Message-ID: <jwvobdkmv9a.fsf-monnier+gmane.emacs.help@gnu.org> (raw)
In-Reply-To: CACeWA3j89TUxrhGLqwLANX+jWUX2uHsPoBwuCdijf1-vwgUQwQ@mail.gmail.com

> Isn't that what overlays would do? How is text-property planes better?

You can partly do that with overlays, yes.

But the current implementation of overlays comes with some performance
problems when you have many overlays (we also know how to fix it, which
would also be a nice GSoC project).

Furthermore, the main issue with resolving conflicts between multiple
packages wanting to use the same property is how to *merge* those
conflicting property values.

My proposal for text-property planes resolves those conflicts by merging
the values via Elisp functions invoked when the text-properties are
applied.  This could also work for overlays, of course, but it's
currently missing not only from text-properties but also from overlays.


        Stefan




      reply	other threads:[~2013-04-12  0:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-11 14:25 Make highlight-symbol.el perfect? Steven Degutis
2013-04-11 15:45 ` Stefan Monnier
2013-04-11 18:01   ` Steven Degutis
2013-04-12  0:54     ` Stefan Monnier [this message]

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=jwvobdkmv9a.fsf-monnier+gmane.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.org \
    /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.