From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#20254: 25.0.50; `face' overlays with equal priority at the same location Date: Fri, 3 Apr 2015 14:44:49 -0700 (PDT) Message-ID: <841dbe06-ed20-4d8d-8bb3-c9245a2a65ed@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1428097585 6394 80.91.229.3 (3 Apr 2015 21:46:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Apr 2015 21:46:25 +0000 (UTC) To: 20254@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 03 23:46:11 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ye9Pm-0005Yh-Oq for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Apr 2015 23:46:11 +0200 Original-Received: from localhost ([::1]:35441 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ye9Pm-0002MD-0g for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Apr 2015 17:46:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ye9Ph-0002Kz-Sm for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2015 17:46:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ye9Pe-0000fE-Lb for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2015 17:46:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ye9Pe-0000f9-IY for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2015 17:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Ye9Pe-0005Bv-BI for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2015 17:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Apr 2015 21:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20254 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.142809750719883 (code B ref -1); Fri, 03 Apr 2015 21:46:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Apr 2015 21:45:07 +0000 Original-Received: from localhost ([127.0.0.1]:44181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ye9Ok-0005Ac-0M for submit@debbugs.gnu.org; Fri, 03 Apr 2015 17:45:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59078) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ye9Oh-00059p-L1 for submit@debbugs.gnu.org; Fri, 03 Apr 2015 17:45:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ye9Ob-0008N2-7Z for submit@debbugs.gnu.org; Fri, 03 Apr 2015 17:44:58 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:45996) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ye9Ob-0008My-5T for submit@debbugs.gnu.org; Fri, 03 Apr 2015 17:44:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ye9OZ-000287-Sa for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2015 17:44:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ye9OW-0008Im-M2 for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2015 17:44:55 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:41986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ye9OW-0008Ie-FK for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2015 17:44:52 -0400 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t33LipMk032015 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 3 Apr 2015 21:44:51 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t33LioO9016784 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Fri, 3 Apr 2015 21:44:51 GMT Original-Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by userv0122.oracle.com (8.13.8/8.13.8) with ESMTP id t33LioA4022142 for ; Fri, 3 Apr 2015 21:44:50 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:101166 Archived-At: I add a new overlay with a given `face' value to some text in a buffer. I add another overlay with a different `face' to the same text. The two overlays have the same `priority' value. The appearance presumably follows what rule? There is this description in (elisp) `Overlay Properties', but it covers only the case where different priorities are involved: For the `face' property, the higher priority overlay's value does not completely override the other value; instead, its face attributes override the face attributes of the lower priority `face' property. I do the same thing to the same sequence of chars appearing elsewhere in the same buffer. The appearance is sometimes the same and sometimes different. One of the two faces "wins", it seems, but perhaps with more testing I would find that there is indeed some face merging(?). But in any case, which one wins seems to be arbitrary (random). If I have several such overlays, each with a different face, at the same set of places, different ones seem to "win" here and there, again, seemingly arbitrarily. If I check `overlays-at' and `C-u C-x =3D', the overlays listed at each place are the same, and in the same order. (They were added to the locations in sequence, i.e., overlays with a given face were added to all locations, then overlays with the next face were added to the same locations, etc.) Is there a rule behind this behavior? Can users control which overlay among several with the same priority "wins"? It doesn't seem to be the first or last created, and I haven't found any other rule behind the behavior either. Note that the context is not one where I want to use different priorities. I'm just asking about the case where multiple overlays apply to a given sequence of text, and they have the same priority but different `face' property values. Is this a bug? Or could an enhancement be made, to make the behavior predictable and controllable? In GNU Emacs 25.0.50.1 (i686-pc-mingw32) of 2014-10-20 on LEG570 Bzr revision: 118168 rgm@gnu.org-20141020195941-icp42t8ttcnud09g Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --enable-checking=3Dyes,glyphs CPPFLAGS=3D-DGLYPH_DEBUG=3D1'