unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: mouse-face vs. transient-mark-mode
Date: Fri, 22 Apr 2005 16:00:28 -0700	[thread overview]
Message-ID: <MEEKKIABFKKDFJMPIOEBOEJJCKAA.drew.adams@oracle.com> (raw)
In-Reply-To: <pan.2005.04.22.21.46.54.918921@as.arizona.edu>

    When an overlay property of 'mouse-face 'highlight is set on a line,
    and transient mark mode is on, and you attempt to drag out a new
    region in the line, the region mark overlay does not show, and
    significant flickering occurs as you drag the mouse inside the
    highlighted text.  As soon as the mouse moves out of the mouse-face
    area (either during the drag or after it's completed), the mark face
    is visible.  The flickering is present even when transient-mark-mode
    is disabled..

    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".

Caveat - The rest of this message is about a possible new feature, so it is
not intended for real discussion before the release. I mention it now as
food for thought, because of JD's request.

I mentioned a few months ago that I thought it be great if one could have a
mouse-face text property combine visually with the face text property:

    Ideally, I would love to be able to use underlining _without
    removing any font-lock highlighting_; that is, simply
    underline the text when you point to it, without changing
    any of its other properties. That's the behavior in
    most Web browsers.

I was speaking of using underline (for example) as the mouse-face, and I
mentioned only font-lock highlighting, but the general idea is to let the
mouse-face show up in combination with the face. That way, you could see the
normal (font-lock) highlighting as well as things like the region.

Of course, the desired effect would only be achieved if the two (mouse-face
& face) combined well. JD's request for being able to set a precedence might
fit here.

As I mentioned previously:

    I'm not sure if that's easy to do, or even feasible, in Emacs

I don't know much about face inheritance, but perhaps that could be used
somehow in this regard.

  reply	other threads:[~2005-04-22 23:00 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 [this message]
2005-04-22 23:21   ` Luc Teirlinck
2005-04-22 23:50     ` JD Smith
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=MEEKKIABFKKDFJMPIOEBOEJJCKAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    /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).