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#48740: 28.0.50; Composition text property is not always honoured Date: Sun, 30 May 2021 18:58:20 +0300 Message-ID: <83y2bw2oyr.fsf@gnu.org> References: <87im30ad2g.fsf@localhost> <837djg4gvq.fsf@gnu.org> <87wnrgtlln.fsf@localhost> <8335u449de.fsf@gnu.org> <87pmx8tfub.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21524"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48740@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 30 17:59:10 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 1lnNqH-0005NG-Jg for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 30 May 2021 17:59:09 +0200 Original-Received: from localhost ([::1]:54524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnNqG-0007e6-N3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 30 May 2021 11:59:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnNq9-0007dp-Rj for bug-gnu-emacs@gnu.org; Sun, 30 May 2021 11:59:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48661) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnNq9-0000te-KT for bug-gnu-emacs@gnu.org; Sun, 30 May 2021 11:59:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lnNq9-0002Ab-JB for bug-gnu-emacs@gnu.org; Sun, 30 May 2021 11:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 May 2021 15:59:01 +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.16223903008287 (code B ref 48740); Sun, 30 May 2021 15:59:01 +0000 Original-Received: (at 48740) by debbugs.gnu.org; 30 May 2021 15:58:20 +0000 Original-Received: from localhost ([127.0.0.1]:60207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnNpU-00029b-3C for submit@debbugs.gnu.org; Sun, 30 May 2021 11:58:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52076) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnNpR-00029M-Aw for 48740@debbugs.gnu.org; Sun, 30 May 2021 11:58:18 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41230) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnNpK-0000Ya-OR; Sun, 30 May 2021 11:58:10 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1798 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnNpK-0006MS-A9; Sun, 30 May 2021 11:58:10 -0400 In-Reply-To: <87pmx8tfub.fsf@localhost> (message from Ihor Radchenko on Sun, 30 May 2021 23:13:16 +0800) 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:207629 Archived-At: > From: Ihor Radchenko > CC: 48740@debbugs.gnu.org > Date: Sun, 30 May 2021 23:13:16 +0800 > > At step 8 (after org-agenda-redo-all): > For "ONG" > 14 17 (org-heading t org-category \"inbox\" face org-todo prettify-symbols-end 301 prettify-symbols-start 294 composition (0 7 [128119]) org-todo-head #(...) fontified t tags (...) org-priority-highest 65 org-priority-lowest 67 time-of-day nil duration nil breadcrumbs nil txt #(...) level \" \" time \"\" extra \"\" format (...) dotime t done-face org-agenda-done org-not-done-regexp \"...\" org-todo-regexp \"...\" org-complex-heading-regexp \"...\" mouse-face highlight help-echo \"...\" org-marker # org-hd-marker # priority 1001 ts-date nil type \"todo\" todo-state #(...) org-agenda-type todo org-last-args nil org-redo-cmd (...) org-series-cmd nil) > For "OING" > 17 21 (org-heading t org-category \"inbox\" face org-todo prettify-symbols-end 301 prettify-symbols-start 294 composition (0 7 [128119]) org-todo-head #(...) fontified t tags (...) org-priority-highest 65 org-priority-lowest 67 time-of-day nil duration nil breadcrumbs nil txt #(...) level \" \" time \"\" extra \"\" format (...) dotime t done-face org-agenda-done org-not-done-regexp \"...\" org-todo-regexp \"...\" org-complex-heading-regexp \"...\" mouse-face highlight help-echo \"...\" org-marker # org-hd-marker # priority 1001 ts-date nil type \"todo\" todo-state #(...) org-agenda-type todo org-last-args nil org-redo-cmd (...) org-series-cmd nil) > > Note the composition part: prettify-symbols-end 301 prettify-symbols-start 294 composition (0 7 [128119]) > The composition part remain unchanged except position in the plist. No, it is also subdivided into two separate regions, each one of 3 characters. And that's why it doesn't work: the display engine expects that the composed text should be covered by a single text property which specifies the length (7 - 0 = 7) that is equal to the length of the covered text (301 - 294 = 7). So the problem is caused by whatever code in org-agenda-redo-all that "breaks" the composition property into 2 separate adjacent properties.