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:52:26 -0800 Message-ID: References: <3385c032-ead0-4890-8cf4-e54375ea8ac7@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1149a3921046c7054538887a X-Trace: blaine.gmane.org 1483484062 29520 195.159.176.226 (3 Jan 2017 22:54:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 3 Jan 2017 22:54:22 +0000 (UTC) To: Drew Adams , 25348@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 03 23:54:17 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 1cOXy4-0006Dd-Sl for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Jan 2017 23:54:09 +0100 Original-Received: from localhost ([::1]:36365 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOXy9-0003dL-4H for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Jan 2017 17:54:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOXy3-0003d4-7A for bug-gnu-emacs@gnu.org; Tue, 03 Jan 2017 17:54:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOXxz-0006y5-25 for bug-gnu-emacs@gnu.org; Tue, 03 Jan 2017 17:54:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53477) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cOXxy-0006y1-TV for bug-gnu-emacs@gnu.org; Tue, 03 Jan 2017 17:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cOXxy-0004yk-Hc for bug-gnu-emacs@gnu.org; Tue, 03 Jan 2017 17:54: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:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25348 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25348-submit@debbugs.gnu.org id=B25348.148348399419074 (code B ref 25348); Tue, 03 Jan 2017 22:54:02 +0000 Original-Received: (at 25348) by debbugs.gnu.org; 3 Jan 2017 22:53:14 +0000 Original-Received: from localhost ([127.0.0.1]:40643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOXxB-0004xa-UM for submit@debbugs.gnu.org; Tue, 03 Jan 2017 17:53:14 -0500 Original-Received: from mail-qk0-f181.google.com ([209.85.220.181]:32790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOXxA-0004xN-En for 25348@debbugs.gnu.org; Tue, 03 Jan 2017 17:53:12 -0500 Original-Received: by mail-qk0-f181.google.com with SMTP id t184so390780560qkd.0 for <25348@debbugs.gnu.org>; Tue, 03 Jan 2017 14:53:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=DVGfnPHx3kGul+z2hLjN7JKbdcmhzG5OpAKBXE8dgVk=; b=uDAM8z9JkNxOwRlHV8jbMJDjt0CbewODeNC0/ZTXuplrvMfc1QOpA0jkSbJ2W8C+Gw BJU7/m7QFPzNcEtWnF3ssZK73N50L30QEYAUMHcVElHF8OIcE5GkFysCMbKphEQ+U2XM qK8o85jcL4fIeR72myhHhrJPElZV0V82oeAUPVixa3HX9uoOd+bek7h42VNNlovpPc6I FLKyZ1m9drfZsUz9zJ4ogXCpxUMIIzByQpbKTYu9IvxEilSHKHK/sIX6AzH3fBgk2Y5D WZ+4nT6cC9ydg5TOgEMtmj0GMGjna9AZXcRV+tdqhvcj6gvbbvQbKQ3SuaQFg9PtkSdn 3DyA== 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:in-reply-to:references:from :date:message-id:subject:to; bh=DVGfnPHx3kGul+z2hLjN7JKbdcmhzG5OpAKBXE8dgVk=; b=Pllx93XaU57Y6U7GWbMlM3WoTEj1CvmXUoQ3GxrjvCIpTiONdWsyBmLqnQYtHpsQXZ 58PfZI24vvZIHUINWDR1+OfTF+boBfsYLUflSLW0csXMc7VU0sq8ABrONGLbVsIOKZxg TlKw+Yh5ym6sJgggmHBh1iH3a+MSnUvKx0irhCnd8eE7vLDU2pa8j4FAtosCRlM9pkrA 95Jx7HoaPRCvPD3KHpfJdXF43ri9/C9vxeYvhiTeJpdiTVYA53xkDdyTA6y5+KoGxJcB 3Qm7ulU87C8T5jKHe91XyTRiaAlJ2uCDNXJWM1TD1UnucfBrRP/XtUJ9Y+TSK1nOFip6 6UUg== X-Gm-Message-State: AIkVDXJ0qV6QSDeanogoHzn+F8nKHr0BXSJwoeqLniEsKl6pEwTVZ+wDYbu+W1mC0fUn/1dqiQJms/fDbk0fjA== X-Received: by 10.55.204.13 with SMTP id r13mr61421016qki.260.1483483986804; Tue, 03 Jan 2017 14:53:06 -0800 (PST) Original-Received: by 10.140.97.164 with HTTP; Tue, 3 Jan 2017 14:52:26 -0800 (PST) In-Reply-To: <3385c032-ead0-4890-8cf4-e54375ea8ac7@default> X-Google-Sender-Auth: paM7z9Mg2buXEXomsZrF_x2nM3g 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:127720 Archived-At: --001a1149a3921046c7054538887a Content-Type: text/plain; charset=UTF-8 Yes, the text in the buffer is replaced by its display text, with the face. Then, I would expect the overlay to apply to all the text on the line, including the replacement text. Since the properties in overlays are supposed to take priority over the properties in the buffer itself, I don't think it makes sense for the replacement to take priority over the overlay. Is that wrong? It seems that the replacement should occur, and then the resulting text should be modified further by the overlay. On Tue, Jan 3, 2017 at 2:29 PM, Drew Adams wrote: > > When I do the following (for example): > > (put-text-property (point) (1+ (point)) > > 'display (propertize "." 'face 'header-line)) > ... > > But it seems like in this case, the display text property > > is taking priority over the the overlay. > > You are using a "replacing" `display'-property spec. > See (elisp) `Replacing Specs'. > http://www.gnu.org/software/emacs/manual/html_node/elisp/ > Replacing-Specs.html > > Your text that has the property is entirely replaced (for display) > by what is specified for property `display'. > --001a1149a3921046c7054538887a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Yes, the text in the buffer is replaced by its display tex= t, with the face. Then, I would expect the overlay to apply to all the text= on the line, including the replacement text. Since the properties in overl= ays are supposed to take priority over the properties in the buffer itself,= I don't think it makes sense for the replacement to take priority over= the overlay.=C2=A0Is that wrong? It seems that the replacement should occu= r, and then the resulting text should be modified further by the overlay.

On Tue, Jan 3= , 2017 at 2:29 PM, Drew Adams <drew.adams@oracle.com> wr= ote:
> When I do the following (for ex= ample):
> (put-text-property (point) (1+ (point))
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 &= #39;display (propertize "." 'face 'header-line))
...
> But it seems like in this case, the display text property
> is taking priority over the the overlay.

You are using a "replacing" `display'-property spec.
See (elisp) `Replacing Specs'.
http://www.gnu.org/soft= ware/emacs/manual/html_node/elisp/Replacing-Specs.html

Your text that has the property is entirely replaced (for display)
by what is specified for property `display'.

--001a1149a3921046c7054538887a--