From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#48740: 28.0.50; Composition text property is not always honoured Date: Tue, 01 Jun 2021 22:28:50 +0800 Message-ID: <878s3tbqvx.fsf@localhost> References: <87im30ad2g.fsf@localhost> <837djg4gvq.fsf@gnu.org> <87wnrgtlln.fsf@localhost> <8335u449de.fsf@gnu.org> <87pmx8tfub.fsf@localhost> <83y2bw2oyr.fsf@gnu.org> <87eedn12j6.fsf@localhost> <835yyz2ctp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31840"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48740@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 01 16:25:11 2021 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 1lo5KR-0008B0-Cp for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Jun 2021 16:25:11 +0200 Original-Received: from localhost ([::1]:48080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lo5KQ-0003UH-Ec for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Jun 2021 10:25:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lo5KI-0003RF-Sl for bug-gnu-emacs@gnu.org; Tue, 01 Jun 2021 10:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54177) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lo5KI-0003mO-Il for bug-gnu-emacs@gnu.org; Tue, 01 Jun 2021 10:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lo5KI-0001JE-El for bug-gnu-emacs@gnu.org; Tue, 01 Jun 2021 10:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Jun 2021 14:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48740 X-GNU-PR-Package: emacs Original-Received: via spool by 48740-submit@debbugs.gnu.org id=B48740.16225574594980 (code B ref 48740); Tue, 01 Jun 2021 14:25:02 +0000 Original-Received: (at 48740) by debbugs.gnu.org; 1 Jun 2021 14:24:19 +0000 Original-Received: from localhost ([127.0.0.1]:37490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lo5Jb-0001IG-CC for submit@debbugs.gnu.org; Tue, 01 Jun 2021 10:24:19 -0400 Original-Received: from mail-lf1-f45.google.com ([209.85.167.45]:36852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lo5JZ-0001Hz-27 for 48740@debbugs.gnu.org; Tue, 01 Jun 2021 10:24:17 -0400 Original-Received: by mail-lf1-f45.google.com with SMTP id q1so22112360lfo.3 for <48740@debbugs.gnu.org>; Tue, 01 Jun 2021 07:24:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:cc:date:message-id :mime-version; bh=LYExu0T3mJPBtlPx0OvisQiou2z4SteeBc0vePwHjNE=; b=UveSLlxH6wlvEvDMUckEQA2m8JJW7oQkx+eUo0EzxqNpPQpL85SvBjs4WLufN/SmTj WaXRL0oMBKDVP8kyl24OlBkMWHWYGz+CZk3bv/KPyo7h5UZeSixQqQ52iQocdXIPHuka KdryeIcPAqPuEFA4qGPGhqIzW6CWq92dfrbTzWRJjzDJUVKWRTXAxIj/Y0jDropNH+Af +Kn0ebeG1+dPmk80zhqGtSAvcM3qDamisWJQ6cL/VU6cDH25G7oO3ctBvcPO2Rqenfqm bSce+EXf4sLyT/UYJgk5uw9s5D4bhd8uuop8AoSIf08Zhwi1QEg3H5Hi2RGRc6YzCOWy 9UDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:cc:date :message-id:mime-version; bh=LYExu0T3mJPBtlPx0OvisQiou2z4SteeBc0vePwHjNE=; b=PuZEsXjCWVYMVG5RNNE8FbnWkIJZf0beR4FVaPfoGUoQadlnI5VUixhcHU/KIrhGFW izinipEBIK4zAdBQ/5o8ga4TTavH43+VyHfPcw+cJQ14UXvQ0VLWkwLhrwQ3yukiHqnW gtOnGOMfYD5YQsiHIdNKeCUHbSxWGeM4u2fcBAGryh38J9++PgA7npV7IbqIrzCj4UXw JVpFCPUm1H0ALMhoV2MLdztRyF56P2wNN/yvLPbFDXys+oEdtxVDTXiBY0oOhMGq/qpn 3hQpRwaOkLrWYQkXY1r7ZymbnMAezLQ5O55bS+q1KVpsie/wrDV2Ht0HUTJ912OL0r/S TIXg== X-Gm-Message-State: AOAM53199wJicaHrCfcM8ETCQd0u2GPlooy0re7Giwj0fvAxfb6g/h7+ 7bWtZZgeoHzWhqhddsap0ZXVI925iNEuiyuF X-Google-Smtp-Source: ABdhPJypqpj1bvlTT7ONZMmTlFeJVzbR3cqsGjT88FtEZ8WGtZTk82Xm269AAuF28W/KFSWIYZ01zw== X-Received: by 2002:ac2:560f:: with SMTP id v15mr8607250lfd.431.1622557450782; Tue, 01 Jun 2021 07:24:10 -0700 (PDT) Original-Received: from localhost ([158.255.2.9]) by smtp.gmail.com with ESMTPSA id r195sm943899lff.69.2021.06.01.07.24.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Jun 2021 07:24:10 -0700 (PDT) In-Reply-To: <835yyz2ctp.fsf@gnu.org> 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:207778 Archived-At: Eli Zaretskii writes: >> Yet, the same "broken" property does work in step 6... > > No, AFAIU in step 6 a single property list covers the whole of the > word ONGOING. I feel that I am missing something then. Stripping all unrelated properties from the plists, I get At step 6 (after changing todo state from TODO to ONGOING): For "ONG" 14 17 (... prettify-symbols-end 301 prettify-symbols-start 294 composition (0 7 [128119]) ...) For "OING" 17 21 (... prettify-symbols-end 301 prettify-symbols-start 294 composition (0 7 [128119]) ...) At step 8 (after org-agenda-redo-all): For "ONG" 14 17 (... prettify-symbols-end 301 prettify-symbols-start 294 composition (0 7 [128119]) ...) For "OING" 17 21 (... prettify-symbols-end 301 prettify-symbols-start 294 composition (0 7 [128119]) ...) step 6 and step 8 look identical for me, yet step 6 does have composition being rendered, unlike step 8. >> The two intervals are there because other properties in the list are >> not same, as I understand. > > Exactly. And that cannot work with the composition property. Again, I feel that I miss something. Consider the following test case: (switch-to-buffer "test") (insert "asdasd") (compose-region (point-min) (point-max) '(?a (bl . tl) ?| (bl . tl) ?b)) (put-text-property 1 3 'test 1) (put-text-property 3 6 'test 2) (buffer-string) The output is #("asdasd" 0 2 (composition (43 6 [97 72 124 72 98]) test 1) 2 5 (composition (43 6 [97 72 124 72 98]) test 2) 5 6 (composition (43 6 [97 72 124 72 98]))) Composition works fine here despite spanning over multiple intervals. Again, I feel that I miss something in your explanation. Best, Ihor