From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25906: 25.1; strange behavior of overlapped mouse-face Date: Fri, 03 Mar 2017 20:29:21 +0200 Message-ID: <83r32ekyda.fsf@gnu.org> References: <87wpc9lkyj.fsf@gmail.com> <83a895nd15.fsf@gnu.org> <8760jsd0wi.fsf@users.sourceforge.net> <83wpc7n2h0.fsf@gnu.org> <83efyen6hl.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1488565827 22904 195.159.176.226 (3 Mar 2017 18:30:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 3 Mar 2017 18:30:27 +0000 (UTC) Cc: 25906@debbugs.gnu.org, ynyaaa@gmail.com, npostavs@users.sourceforge.net To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 03 19:30:14 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjrxw-0004Ac-Bu for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Mar 2017 19:30:08 +0100 Original-Received: from localhost ([::1]:59600 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjry2-0005wd-8N for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Mar 2017 13:30:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjrxu-0005u4-Fi for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2017 13:30:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjrxr-0005x0-CK for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2017 13:30:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40563) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cjrxr-0005wU-93 for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2017 13:30:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cjrxq-0005q4-VE for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2017 13:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Mar 2017 18:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25906 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 25906-submit@debbugs.gnu.org id=B25906.148856579222405 (code B ref 25906); Fri, 03 Mar 2017 18:30:02 +0000 Original-Received: (at 25906) by debbugs.gnu.org; 3 Mar 2017 18:29:52 +0000 Original-Received: from localhost ([127.0.0.1]:38762 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjrxf-0005pJ-MC for submit@debbugs.gnu.org; Fri, 03 Mar 2017 13:29:51 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45107) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjrxe-0005p6-Ev for 25906@debbugs.gnu.org; Fri, 03 Mar 2017 13:29:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjrxY-0005s5-Ke for 25906@debbugs.gnu.org; Fri, 03 Mar 2017 13:29:45 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60307) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjrxS-0005q0-M4; Fri, 03 Mar 2017 13:29:38 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3120 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cjrxR-00061y-Ls; Fri, 03 Mar 2017 13:29:38 -0500 In-reply-to: (message from Glenn Morris on Fri, 03 Mar 2017 12:53:09 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:130123 Archived-At: > From: Glenn Morris > Cc: npostavs@users.sourceforge.net, 25906@debbugs.gnu.org, ynyaaa@gmail.com > Date: Fri, 03 Mar 2017 12:53:09 -0500 > > Eli Zaretskii wrote: > > >> I expect expect the appearance of the display when the cursor is at some > >> point (BBB) to not depend on how it got there. > > > > I agree. This should already happen after my recent changes. > > Yes, that happens now, but not in the way I was naively expecting. That's why I asked. > Now it seems that overlay ol-2 always wins. Maybe this is correct, I > don't know. It is correct, because only one overlay should be used for displaying mouse-face, and the code selects the overlay of the highest priority. Since the recipe didn't define any priority for the overlays, Emacs, somewhat arbitrarily, chooses the second one. > I think from the original report, the OP might expect both underline > and overline when the cursor is on BBB That would be the wrong thing to do, IMO. The mouse-face is not just any face, it is designed for showing an "active region" of text, where mouse gestures produce certain effects. Such region is also customary has a help-echo defined to show the appropriate tooltip. It therefore makes no sense to merge mouse-face definitions that come from several different sources, because there could be only one action that will happen upon those mouse gestures, and mixing several help-echo texts makes no sense either. So Emacs shows only one mouse-face of several possible ones.