unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: JD Smith <jdsmith@as.arizona.edu>
Subject: Re: mouse-face vs. transient-mark-mode
Date: Fri, 22 Apr 2005 16:50:40 -0700	[thread overview]
Message-ID: <pan.2005.04.22.23.50.40.275625@as.arizona.edu> (raw)
In-Reply-To: 200504222321.j3MNL1r00833@raven.dms.auburn.edu

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,

JD

  reply	other threads:[~2005-04-22 23:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-22 21:46 mouse-face vs. transient-mark-mode JD Smith
2005-04-22 23:00 ` Drew Adams
2005-04-22 23:21   ` Luc Teirlinck
2005-04-22 23:50     ` JD Smith [this message]
2005-04-23  0:54       ` Luc Teirlinck
2005-04-23 22:24       ` Richard Stallman

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=pan.2005.04.22.23.50.40.275625@as.arizona.edu \
    --to=jdsmith@as.arizona.edu \
    /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).