From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: mouse-face vs. transient-mark-mode Date: Fri, 22 Apr 2005 16:00:28 -0700 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1114210733 12013 80.91.229.2 (22 Apr 2005 22:58:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Apr 2005 22:58:53 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 23 00:58:50 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DP76A-0003ks-8W for ged-emacs-devel@m.gmane.org; Sat, 23 Apr 2005 00:58:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DP7B9-0000dQ-QW for ged-emacs-devel@m.gmane.org; Fri, 22 Apr 2005 19:03:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DP7AW-0000cA-6V for emacs-devel@gnu.org; Fri, 22 Apr 2005 19:02:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DP7AU-0000bP-3e for emacs-devel@gnu.org; Fri, 22 Apr 2005 19:02:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DP7AT-0000aQ-UU for emacs-devel@gnu.org; Fri, 22 Apr 2005 19:02:37 -0400 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DP7BF-0007dP-VT for emacs-devel@gnu.org; Fri, 22 Apr 2005 19:03:26 -0400 Original-Received: from agminet01.oracle.com (localhost [127.0.0.1]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j3MN0YF7022898 for ; Fri, 22 Apr 2005 18:00:34 -0500 Original-Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j3MN0XRS022881 for ; Fri, 22 Apr 2005 18:00:33 -0500 Original-Received: from rgmsgw300.us.oracle.com (localhost [127.0.0.1]) by rgmsgw300.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j3MN0WXg020381 for ; Fri, 22 Apr 2005 17:00:32 -0600 Original-Received: from dradamslap (dhcp-amer-csvpn-gw2-141-144-74-130.vpn.oracle.com [141.144.74.130]) by rgmsgw300.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id j3MN0VY9020371 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Fri, 22 Apr 2005 17:00:32 -0600 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:36278 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36278 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.