unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org, miles@gnu.org
Subject: Re: Combining face and map stuff
Date: Tue, 12 Oct 2010 21:09:22 +0200	[thread overview]
Message-ID: <83sk0bkz31.fsf@gnu.org> (raw)
In-Reply-To: <jwvk4ltj2sv.fsf-monnier+emacs@gnu.org>

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: miles@gnu.org,  emacs-devel@gnu.org
> Date: Thu, 07 Oct 2010 20:08:26 +0200
> 
> Package foo wants to add `face' stuff and package bar also wants to add
> `face' stuff.  If both add it to the same piece of text, we have
> a problem, and if they want to update it later they have to know who
> "owns" the particular value (i.e. who it comes from) to know whether it
> should be updated or not.

In that case, I'm sorry, but I must ask the same question again: how
will the display engine know which face to display?

Let's say we have a buffer, in which both package foo and package bar
defined different faces for the same piece of text.  Which one of them
will be displayed, and how would the display engine know to choose it?

> >> - there is no way currently to combine various property values (the OP's
> >> question).
> > What's wrong with add-text-properties?
> 
> It never combines values of a single property, just overwrites an old
> value with a new one.

Light begins slowly to turn on...



  reply	other threads:[~2010-10-12 19:09 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-02 14:21 Combining face and map stuff Lars Magne Ingebrigtsen
2010-10-02 16:21 ` Chong Yidong
2010-10-02 16:41   ` Lars Magne Ingebrigtsen
2010-10-03  2:04     ` Miles Bader
2010-10-03  4:16     ` Chong Yidong
2010-10-03 13:08       ` Lars Magne Ingebrigtsen
2010-10-03 23:37 ` Stefan Monnier
2010-10-04  7:56   ` Eli Zaretskii
2010-10-04  9:03     ` Miles Bader
2010-10-04  9:42       ` Eli Zaretskii
2010-10-05  0:12         ` Miles Bader
2010-10-05 23:43           ` Stefan Monnier
2010-10-06  3:57             ` Eli Zaretskii
2010-10-07  7:40               ` Stefan Monnier
2010-10-07 13:56                 ` Eli Zaretskii
2010-10-07 18:08                   ` Stefan Monnier
2010-10-12 19:09                     ` Eli Zaretskii [this message]
2010-10-12 20:23                       ` Stefan Monnier
2010-10-13 11:41                         ` Eli Zaretskii
2010-10-13 12:42                           ` Stefan Monnier

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=83sk0bkz31.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 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).