all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ehud Karni" <ehud@unix.mvs.co.il>
Cc: help-gnu-emacs@gnu.org
Subject: Re: priority of overlays vs text-properties
Date: Thu, 5 Sep 2002 18:19:15 +0300	[thread overview]
Message-ID: <200209051519.g85FJFo03830@beta.mvs.co.il> (raw)
In-Reply-To: <ubs7csdl1.fsf@raibau.raiffeisen.at> (message from Klaus Berndl on 05 Sep 2002 16:42:02 +0200)

On 05 Sep 2002 16:42:02 +0200, Klaus Berndl <Klaus.Berndl@raibau.raiffeisen.at> wrote:
> 
> Suppose i add a face with color "red" to a text "XXX" in current buffer.
> Then i define an overlay and add a face-property to this overlay which has
> color "green". This overlay should cover the whole buffer (maybe senseless but
> it's just an example)!
> 
> Ok, now my question: Is the text "XXX" (which has "red"-text-properties, see
> above) displayed now green or red?

It will surly appear in green color (I use this all the time).

If you have more than 1 face-property overlay on the same text then
the face that is shown depends on the priority of the overlay, the
higher priority (larger number) will be shown.   Use:
       (overlay-put <overlay-name> 'priority <priority-value>)
to set the overlay priority.

Ehud.


-- 
 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 mailto:ehud@unix.mvs.co.il                  Better  Safe  Than  Sorry

      parent reply	other threads:[~2002-09-05 15:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-05 14:42 priority of overlays vs text-properties Klaus Berndl
2002-09-05 14:57 ` lawrence mitchell
2002-09-05 15:19 ` Ehud Karni [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=200209051519.g85FJFo03830@beta.mvs.co.il \
    --to=ehud@unix.mvs.co.il \
    --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.