From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akib Azmain Turja Newsgroups: gmane.emacs.devel Subject: Replacing spec of display text property uses wrong when set as before-string or after-string property of an overlay Date: Tue, 10 May 2022 20:37:04 +0600 Message-ID: <87h75xcv3j.fsf@disroot.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38530"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 10 17:57:43 2022 Return-path: Envelope-to: ged-emacs-devel@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 1noSF4-0009qJ-Si for ged-emacs-devel@m.gmane-mx.org; Tue, 10 May 2022 17:57:42 +0200 Original-Received: from localhost ([::1]:40654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1noSF3-0001lc-La for ged-emacs-devel@m.gmane-mx.org; Tue, 10 May 2022 11:57:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44316) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noQzP-0005LM-Tl for emacs-devel@gnu.org; Tue, 10 May 2022 10:37:27 -0400 Original-Received: from knopi.disroot.org ([178.21.23.139]:58374) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noQzN-0003sl-Qg for emacs-devel@gnu.org; Tue, 10 May 2022 10:37:27 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 789F442E8D for ; Tue, 10 May 2022 16:37:22 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fXeXMO6O6MWP for ; Tue, 10 May 2022 16:37:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1652193440; bh=wsmtWTmgfdbct8rB+EAOgXmaJPlsWJYmU4rHOEBj1VM=; h=From:To:Subject:Date; b=GaP5jmrkYcgch5G/arTi6oJTp8kZIPox7j7DyhnOn/hDREDJsu1Bi+vcnh/yjf96c 9tn7Kn11u5zV5lVLko6TY9eSrFLUWh9R+uC+T5L9CHezxIyj9g5XCkO7pzywO3ti6x sX+wnQD75slZWxm8HRQEMxFJWIWg/h6NjB6Txgp5ynJCtiLH6SmUn2UDKoVhfhDJTV NcQaICtwi/SrYm6bs2E7EBrFGq8H14JRd1/b7CasP2mv7QfAvyWM65AeATqFtgQdDu TlShIt3EQbHHBWEymUXtEf7mJqVJOwI5K8ctVhBUMsa3KVQ0Q010KLBfOhEjp9cxOH gAtl91/KGN6Jg== Received-SPF: pass client-ip=178.21.23.139; envelope-from=akib@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 10 May 2022 11:56:40 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:289591 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Here is an example code: =2D----------- (let ((txt-disp (concat " " (propertize "_" 'display "foobar") " ")) (ov (make-overlay (point-min) (point-max)))) (overlay-put ov 'before-string (propertize txt-disp 'face `(:weight bold :foreground "red" :background "yellow")))) ;; To remove the overlay call `delete-all-overlays`. =2D----------- After executing the above " foobar " should appear at the beginning of buffer with red foreground and yellow background. But the "foobar" part doesn't use any color (i.e uses the face of the real text at the beginning of buffer). This doesn't happen when the text is inserted. Is it a bug? =2D-=20 Akib Azmain Turja This message is signed by me with my GnuPG key. It's fingerprint is: 7001 8CE5 819F 17A3 BBA6 66AF E74F 0EFA 922A E7F5 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmJ6eJAACgkQVTX89U2I YWvZdA/8CSLOd9u1D5UgzrZggntZYdkQSeGMQNX0I+hfSTkgLSFbvYAy/Gd2UAL/ iFC94i4EtV+YUZLAR1Nv+yFnFomQ6UtAWk73ODnl4BQGcUcYDkptqg5xUDTfTd7V IhcMXuDBLDHidqyxWB7Y63nGSnmV60hhQu10D15wbfx5UtZH/UxYbFCVT42DSlFJ Uk2jZ2kv6Jl2rtsNZnu6jKwmSilugjlQsOmERfCSJ6NSDZmlTRuLYrVbBks89O6N H7SFpJscZnIQv2tIJGho4lqOMidLu0AvwzWKTlsr4Ip4zHoW3zdrBUQm8iyHsULx tAFST6yN9Fqka+BrMn/Z1tPSJ2Gk2yEW0+LAZH/+y6RAU3BDnrivFWamM54T0UKz Nbiubi40gJEQ/rEORhI7TOSthEKfTDdR9cZnX03Bc5gLaYqDMxpWfqBmllLsoRLW 0c7nNcdI4UmNdoeug/uDI1tAPYMaXkZhqIJZPZD4Tn4oe3JR2dOaAbbD8Wp8lMPa XoTxheXxv5EIHYZ/FNWYcISLW4AaJM/xaH9IDOGvruq9jBQk9cylgBQ7riVZPkCJ wRuUIy0OWqDy01oLdIxZAGg+SruYhL+28EawRueRaTN1ocjaJV6CySv4jb+LkJIq jzw4S8+oeeVH2OqMdJO4vmZdK2ogf2cASFT8lzpCTJtVHO+h8Bk= =PgR3 -----END PGP SIGNATURE----- --=-=-=--