From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: JD Smith Newsgroups: gmane.emacs.devel Subject: Re: mouse-face vs. transient-mark-mode Date: Fri, 22 Apr 2005 16:50:40 -0700 Message-ID: References: <200504222321.j3MNL1r00833@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1114213693 18145 80.91.229.2 (22 Apr 2005 23:48:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Apr 2005 23:48:13 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 23 01:48:11 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DP7sS-0007ns-To for ged-emacs-devel@m.gmane.org; Sat, 23 Apr 2005 01:48:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DP7xT-0007fX-E6 for ged-emacs-devel@m.gmane.org; Fri, 22 Apr 2005 19:53:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DP7xD-0007a5-8i for emacs-devel@gnu.org; Fri, 22 Apr 2005 19:52:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DP7xB-0007VS-PY for emacs-devel@gnu.org; Fri, 22 Apr 2005 19:52:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DP7xB-0006nC-Lj for emacs-devel@gnu.org; Fri, 22 Apr 2005 19:52:57 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DP7xp-000207-LV for emacs-devel@gnu.org; Fri, 22 Apr 2005 19:53:37 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DP7qW-0007fV-Uu for emacs-devel@gnu.org; Sat, 23 Apr 2005 01:46:05 +0200 Original-Received: from turtle.as.arizona.edu ([128.196.208.207]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Apr 2005 01:46:04 +0200 Original-Received: from jdsmith by turtle.as.arizona.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Apr 2005 01:46:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 34 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: turtle.as.arizona.edu User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table) 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:36280 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36280 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