From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Travis Foster Newsgroups: gmane.emacs.bugs Subject: bug#25348: `display` property faces are prioritized above overlays Date: Tue, 3 Jan 2017 14:17:07 -0800 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113facc0ca644d054538092e X-Trace: blaine.gmane.org 1483482133 8551 195.159.176.226 (3 Jan 2017 22:22:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 3 Jan 2017 22:22:13 +0000 (UTC) To: 25348@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 03 23:22:09 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 1cOXT5-0001PL-Gh for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Jan 2017 23:22:07 +0100 Original-Received: from localhost ([::1]:36290 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOXT7-0006kn-Ov for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Jan 2017 17:22:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOXT1-0006hW-IF for bug-gnu-emacs@gnu.org; Tue, 03 Jan 2017 17:22:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOXT0-0003Pi-KP for bug-gnu-emacs@gnu.org; Tue, 03 Jan 2017 17:22:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53465) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cOXT0-0003Pa-G4 for bug-gnu-emacs@gnu.org; Tue, 03 Jan 2017 17:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cOXT0-0004FG-9F for bug-gnu-emacs@gnu.org; Tue, 03 Jan 2017 17:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Travis Foster Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Jan 2017 22:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25348 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.148348211916306 (code B ref -1); Tue, 03 Jan 2017 22:22:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Jan 2017 22:21:59 +0000 Original-Received: from localhost ([127.0.0.1]:40631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOXSx-0004Ew-4b for submit@debbugs.gnu.org; Tue, 03 Jan 2017 17:21:59 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOXP4-00048M-Ts for submit@debbugs.gnu.org; Tue, 03 Jan 2017 17:17:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOXOy-0002A5-Oc for submit@debbugs.gnu.org; Tue, 03 Jan 2017 17:17:53 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51295) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cOXOy-0002A0-Kw for submit@debbugs.gnu.org; Tue, 03 Jan 2017 17:17:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOXOx-0006aV-Ho for bug-gnu-emacs@gnu.org; Tue, 03 Jan 2017 17:17:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOXOw-00029V-Ha for bug-gnu-emacs@gnu.org; Tue, 03 Jan 2017 17:17:51 -0500 Original-Received: from mail-qt0-x22c.google.com ([2607:f8b0:400d:c0d::22c]:35973) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cOXOw-00029J-DG for bug-gnu-emacs@gnu.org; Tue, 03 Jan 2017 17:17:50 -0500 Original-Received: by mail-qt0-x22c.google.com with SMTP id k15so236820861qtg.3 for ; Tue, 03 Jan 2017 14:17:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=IwUOQWCho3BK/rf/3I3tb/JP161zQro/Ne9KiCArN6c=; b=pzQIbSgkUf/0Kg/C+7oOq+e3ivAMG5obwacPVJvN4vpXJFkNrgFcMNMNtljvFCqGRi Ngxawi9nFEiDQixHrAB/K7n7heUS93WQBymd+mzp3qMbRT4MbPzIU9apgJAoLou3J5so VYacB6HYdo0A4vR6EacE/lcPMWoJ7bueLyS+KuQenEgyOnr4YxRepdPKNV5bnr8XmZ1c /DkgMU4AMxgf919paD5fmfImx9nDYfib7ZH8orYcVIhpbXDucJ9FewhccoIn0ZrDzEw5 WppQYI3aqPAnJyjs2OFn8toU1cHrc7FOdMRpaMG6yEIRdL4hr6+MdK0pMd6tBDiDFRH6 ppOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=IwUOQWCho3BK/rf/3I3tb/JP161zQro/Ne9KiCArN6c=; b=E0hA4bt9sklb2F6BV9nFjMyAd2SvJ8FVsRat7cNnWKU778t5cA4pzRvCY0MOTdmN6S boEvoesx9M7Jmczh1Xx7wbo2YUsWzT7P4axUZugHH9CsxcV76TD/Pe/cguUEw5Vb8eLl woE8CZyodWVO6Nj+pKrt6yG4LQFWzzZ9B7X4y7WFXdEz4wec+Fk0/RPhUH+SQkYROQYt InvuJAHO6XUtdr8WZcEWTMuyTODzVCRK71pBaVNGnTNxP1HL7vr9iWxcOzQfQPbeY3rZ OzP2fOrWTTlrSyHnn0HVx2dOHpCnR6QcAanqm+YZLinKBhKplx0y+F6/TWofnc2W1AhS 2Z6Q== X-Gm-Message-State: AIkVDXLME3nV0zB7Ij/o4StkwZP+ATxrvcUaoqxPPyGre1cCbcSYhxKnDcx95F5yGTVy8guBqUlfPUBqC3wE5Q== X-Received: by 10.237.55.97 with SMTP id i88mr60372792qtb.143.1483481868295; Tue, 03 Jan 2017 14:17:48 -0800 (PST) Original-Received: by 10.140.97.164 with HTTP; Tue, 3 Jan 2017 14:17:07 -0800 (PST) X-Google-Sender-Auth: LzILvMhwFbVvkcMoBrepO-R2a3c X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Tue, 03 Jan 2017 17:21:57 -0500 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:127718 Archived-At: --001a113facc0ca644d054538092e Content-Type: text/plain; charset=UTF-8 When I do the following (for example): (put-text-property (point) (1+ (point)) 'display (propertize "." 'face 'header-line)) The character at point becomes a dot with a gray background. If I then enable hl-line-mode, the line turns green, as expected. However, the dot still has a gray background; it does not turn green with the rest of the line. It appears that hl-line-mode uses an overlay to highlight the line. From the overlay documentation, "Currently, all overlays take priority over text properties." But it seems like in this case, the display text property is taking priority over the the overlay. Since I'm embedding the face into the display string, I expect it to take priority over any faces that are applied to the text, but not over any overlays which affect it. --001a113facc0ca644d054538092e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
When I do the following (for example):

= (put-text-property (point) (1+ (point)) 'display (propertize ".&qu= ot; 'face 'header-line))

The character at = point becomes a dot with a gray background. If I then enable hl-line-mode, = the line turns green, as expected. However, the dot still has a gray backgr= ound; it does not turn green with the rest of the line.

It appears that hl-line-mode uses an overlay to highlight the line. F= rom the overlay documentation, "Currently, all overlays take priority = over text properties." But it seems like in this case, the display tex= t property is taking priority over the the overlay. Since I'm embedding= the face into the display string, I expect it to take priority over any fa= ces that are applied to the text, but not over any overlays which affect it= .
--001a113facc0ca644d054538092e--