From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: magnus@therning.org Newsgroups: gmane.emacs.bugs Subject: bug#64969: 30.0.50: Stipple broken with PGTK Date: Tue, 01 Aug 2023 11:27:09 +0200 Message-ID: <873513ayzw.fsf@therning.org> References: <874jlk4i81.fsf@therning.org> <87v8e0chwp.fsf@yahoo.com> <87mszbcwvw.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38247"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.5; emacs 30.0.50 Cc: 64969@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 01 13:59:23 2023 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 1qQo26-0009iZ-Vh for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Aug 2023 13:59:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQo1p-0004FC-Cw; Tue, 01 Aug 2023 07:59:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qQo1m-0004Ez-PH for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2023 07:59:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qQo1m-0005am-H0 for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2023 07:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qQo1m-00083v-D2 for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2023 07:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: magnus@therning.org Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Aug 2023 11:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64969 X-GNU-PR-Package: emacs Original-Received: via spool by 64969-submit@debbugs.gnu.org id=B64969.169089110530908 (code B ref 64969); Tue, 01 Aug 2023 11:59:02 +0000 Original-Received: (at 64969) by debbugs.gnu.org; 1 Aug 2023 11:58:25 +0000 Original-Received: from localhost ([127.0.0.1]:47333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQo1B-00082S-14 for submit@debbugs.gnu.org; Tue, 01 Aug 2023 07:58:25 -0400 Original-Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]:53666) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQlki-0001aD-2e for 64969@debbugs.gnu.org; Tue, 01 Aug 2023 05:33:17 -0400 Original-Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4fe457ec6e7so687605e87.3 for <64969@debbugs.gnu.org>; Tue, 01 Aug 2023 02:33:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=therning-org.20221208.gappssmtp.com; s=20221208; t=1690882390; x=1691487190; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=CaBq08EsO3IVj7a/SWpB+LYxSoEfh/fu1/yClTDvZhQ=; b=ljSQDLdOr1uy0QEqPvulMJ/ddD1OjQ2yrWlqxc2YeYxgiEeDs55YxCtDd2epVEIbwa OzLWY01fDyrI7s3eFRq/OHc3Jvrwmc7FkjC4dVjU7eiGqgRpBYS0awqh64bazFlE2wAk Up5QreoPzkr3yUOm9u90ep98BJALak0he6wizrH5ROzA1bTUUoPJiNLnS0WCIyizjH1t kcKp+NcRlSUHKMOyA+Yb3C9fqg8W7Ym48pDNx3g/5wk9JJqnx1E/aQ2kzWhsGvZSmm8Q YXCTpxDXZqDQZE683ZY9Pg1biRRr/kmd1ZGEwxFOPOK17V2gAJ+629NjgcRUKDS2MdES iX7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690882390; x=1691487190; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=CaBq08EsO3IVj7a/SWpB+LYxSoEfh/fu1/yClTDvZhQ=; b=YMGC29jl7ZIN/QVbcrvkICvzvU11lkOoZkZZFHnUIOLC0KvCNPaeVlNMja4D/OelmN jAPO2UbNaA/NjyPS1UnvLcnoeL9uUY/m5asiO0tmX1JGgGTmC6i1xsxBnAWm8k6K3VJj xe59ozGOc8y6yyybSrAMPv4Sr9dVVINZLxM729ctf9CTW1syh9Iriyrg4Dpix0epXTmC uu6NxjS4KXJix1uIdRXAFS8o7pf60cQPW9WTB/UCsFa9Xk/0t72UH2oqTtQ335ZtALUL kOzLiNlBXWCbAT2ygTkWneN2aqGgM7pvN0FJDGUkNMskFIpCr6KDQXAsc8czWfVdV2OU z8Tw== X-Gm-Message-State: ABy/qLaIS+h65/4GnfyG0lP2VLC+0Bv1YHi8bBh2Gk7su8wJkYDPLnIp U4eWR3qtpCuJzqtEKKVfPyJSr1PyQC+NoY8bkwktRQ== X-Google-Smtp-Source: APBJJlG2g0xNfHTTCcTnRJSNF8UXgF0sEMsOzXYgJ0IDYL3/ypZUz25ZI8awfSag/NWDNmmDe0rzQw== X-Received: by 2002:ac2:5dd1:0:b0:4fe:15b5:a5f9 with SMTP id x17-20020ac25dd1000000b004fe15b5a5f9mr1682497lfq.54.1690882389891; Tue, 01 Aug 2023 02:33:09 -0700 (PDT) Original-Received: from elostirion (c83-251-191-133.bredband.tele2.se. [83.251.191.133]) by smtp.gmail.com with ESMTPSA id a13-20020a19f80d000000b004fe1268bf7asm452666lff.126.2023.08.01.02.33.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Aug 2023 02:33:08 -0700 (PDT) In-reply-to: <87mszbcwvw.fsf@yahoo.com> X-Mailman-Approved-At: Tue, 01 Aug 2023 07:58:24 -0400 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:266443 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Po Lu writes: > Po Lu writes: > >> magnus@therning.org writes: >> >>> The code >>> >>> (let* ((w (window-font-width)) >>> (stipple `(,w 1 ,(apply #'unibyte-string >>> (append (make-list (1- (/ (+ w 7) >>> 8)) ?\0) >>> '(1)))))) >>> (insert "\n" (propertize (concat (make-string 15 ?\s) >>> "THIS IS A TEST" >>> (make-string 15 ?\s)) >>> 'face `(:background "red"=20 >>> :foreground >>> "blue" :stipple ,stipple)))) >>> >>> doesn't have the expected result, i.e. the text is not blue on=20 >>> red >>> background. >>> >>> More information leading to this report can be found at >>> https://github.com/jdtsmith/indent-bars/issues/3 >> >> I think this owes to an inconsistency between the PGTK and X=20 >> bitmap >> initialization code. I will look into this tomorrow, unless=20 >> someone >> wants to do it first. >> >> The relevant functions are `image_create_bitmap_from_data' and >> `image_create_pattern_from_pixbuf' in image.c. > > I think this should now have been fixed on the master branch;=20 > the change > was too involved for Emacs 29. Please test and ack, thanks. Yes! That change fixed it. I verified the above elisp expression (in fundamental mode) both=20 in a "bare emacs" (emacs -q) and in my own config. The behaviour=20 is now exactly as expected. It also works well with the indent-bars[1] package. Thanks so much for the very fast fix. /M [1]: https://github.com/jdtsmith/indent-bars =2D-=20 Magnus Therning OpenPGP: 0x927912051716CE39 email: magnus@therning.org @magthe@mastodon.technology http://magnus.therning.org/ `Ford, you're turning into a penguin. Stop it.' =E2=80=94 Arthur experiences the improbability drive at work. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJIBAEBCgAyFiEEKwgezhW98spw4aSSknkSBRcWzjkFAmTI0VMUHG1hZ251c0B0 aGVybmluZy5vcmcACgkQknkSBRcWzjmErg//cJWzNs595l8OL3fq8UYWZUDJtdHA yd8dKOq/THCtA4c7Mokss50esltpD67SxZ7alb/JnP2mbxDcU0ti8QjqaSVcWVCX 1n2B49MsX2mgb1XeHjja8y1RT21H/c4zKDqQiGhLfjffylKFyK15CH8WHfaIAhVe VcvzPW5m8WKIjxQafz+ThQ0WAS9zd2f+OIzndD0kXMm7ceNqUWb/bsQ6OnUeEy8k DK0ULkox5S0DT42Bab6YxXkSVYgl2lULv8+Jmh6e6iFptdw5ifxsA1kup1YXiqAI qFsz6Bwk6ZCR9IGRhVIzNybLtyDPjJ8XIg/VZXsX3fptwGswb4wad/UjFI3rinhY o8gGcAhsPhB+NOSnvGaF1o3jwJX9u6y814syh8iAc1Fd017vywUMr+/QRaou4mR4 cAu0gEvrxHI4L2VS1QH4iSpItkvaBvWLIpKpjZ8NtCGa1yDS2lMtFbvyAMFBSnNJ FWpai4EwzDOMnurKkmy+klBzeLkaQzIJlhQ58EpIuSwsn5cB8hepF+9CBEL1HT4K /i7nfODwqSXqWRF3q5gnWADjd1LlFwWte3Zu41vj3sboxtXfSjyR92QXyh1eHjAv B/Sx4RHrsPAY8b7NwH9rIp2SGXx49QtmNB0yH+Zxxy2toeSYnMbFibKS6J2vk6tF he27Wl1eNdF1/Hk= =u82T -----END PGP SIGNATURE----- --=-=-=--