[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mouse-face vs. transient-mark-mode

From: JD Smith
Subject: Re: mouse-face vs. transient-mark-mode
Date: Fri, 22 Apr 2005 16:50:40 -0700
User-agent: Pan/ (As She Crawled Across the Table)

On Fri, 22 Apr 2005 18:21:01 -0500, Luc Teirlinck wrote:

> Drew Adams wrote:
>        Is it possible to set a priority on either mouse-face or the region
>        highlight property to have the former yield to the latter?
>    I can't answer your question definitively, JD, but I think the answer is
>    "no".
> I am not sure whether JD's question was whether it was _possible_ to
> give overlays different priorities in general or whether it would be
> OK to do so it in the particular case referred to.  In as far as the
> first question is concerned, `(overlay-put OVERLAY 'priority VALUE)
> should do it.  See `(elisp)Overlay Properties'.

Thanks for the comments.  In fact I _was_ inquiring if it was possible
to do.

As you suggest, I can change the priority for my own overlays, such as
the 'mouse-face 'highlight mentioned, but I can't seem to get that
setting (positive, negative, whatever) to affect the region highlighting
while the mouse is on the line with 'mouse-face set.  No matter what, the
region highlighting is not visible, and substantial flickering occurs as
regions are dragged into existence.  I'm not even sure that region
highlighting is implemented as an overlay; it may be a text property, and,
correct me if I'm wrong, overlays always have higher priority, regardless
of their 'priority property.  Is there some way you know of giving the
region highlighting higher priority?

Thanks again,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]