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 _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel