From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#42552: 28.0.50; Overlay 'face' property doesn't set the "underlying face" for 'after-string' Date: Tue, 11 Aug 2020 18:10:42 +0300 Message-ID: <83h7t943rh.fsf@gnu.org> References: <46466541-6185-2bf3-87cc-b28c71fe69e7@yandex.ru> <838sf6gkvq.fsf@gnu.org> <83wo2ldrqb.fsf@gnu.org> <831rknbwb9.fsf@gnu.org> <831rkl9m1e.fsf@gnu.org> <7e9af86a-961e-8afd-0d62-0a1c79b96b40@yandex.ru> <837dub811n.fsf@gnu.org> <2b1fda37-b193-0119-3fab-71181fc758ae@yandex.ru> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17643"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 42552@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 11 17:12:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5Vwf-0004SQ-Ch for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Aug 2020 17:12:09 +0200 Original-Received: from localhost ([::1]:47542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k5Vwe-0002S9-FM for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Aug 2020 11:12:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51496) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5VwY-0002S1-MV for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2020 11:12:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58107) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k5VwY-0008U9-Dd for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2020 11:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k5VwY-0006wR-8B for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2020 11:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Aug 2020 15:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42552 X-GNU-PR-Package: emacs Original-Received: via spool by 42552-submit@debbugs.gnu.org id=B42552.159715866526612 (code B ref 42552); Tue, 11 Aug 2020 15:12:02 +0000 Original-Received: (at 42552) by debbugs.gnu.org; 11 Aug 2020 15:11:05 +0000 Original-Received: from localhost ([127.0.0.1]:41419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5Vvd-0006v9-6C for submit@debbugs.gnu.org; Tue, 11 Aug 2020 11:11:05 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5VvZ-0006ue-5S for 42552@debbugs.gnu.org; Tue, 11 Aug 2020 11:11:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43847) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k5VvT-0008Qa-R6; Tue, 11 Aug 2020 11:10:55 -0400 Original-Received: from [176.228.60.248] (port=3150 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k5VvT-0001aV-2f; Tue, 11 Aug 2020 11:10:55 -0400 In-Reply-To: <2b1fda37-b193-0119-3fab-71181fc758ae@yandex.ru> (message from Dmitry Gutov on Tue, 11 Aug 2020 01:27:59 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:184664 Archived-At: > Cc: 42552-done@debbugs.gnu.org > From: Dmitry Gutov > Date: Tue, 11 Aug 2020 01:27:59 +0300 > > On 07.08.2020 08:42, Eli Zaretskii wrote: > > >> 1. Eval: > >> > >> (with-silent-modifications > >> (insert (propertize "abc" > >> 'font-lock-face > >> '((:background "green" :extend t) > >> default > >> ( :inverse-video t > >> :foreground "yellow" > >> :extend t))))) > >> > >> 2. C-j > >> > >> The "extended" newline is yellow. > > > > That's expected due to face-merging, no? > > I would have expected it to be green, at least. But if you say it's > working correctly, it probably is. No, you are right: there's a subtlety here and another bug. The subtlety is that having 'default' there is not a no-op: it resets the :inverse-video attribute, and then "yellow" no longer affects the background of the merged face. So to have the same happen during face extension past EOL, you need to have all the components say ":extend t", like this: (with-silent-modifications (insert (propertize "abc" 'font-lock-face '((:background "green" :extend t) ( :inherit default :extend t) ( :inverse-video t :foreground "yellow" :extend t))))) And the bug is that the above doesn't work in Emacs 27; I've just installed a fix on master. Thanks.