From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: JD Smith Newsgroups: gmane.emacs.bugs Subject: bug#65105: Reusing the same string as 'display on consecutive characters evades display Date: Sat, 5 Aug 2023 18:49:11 -0400 Message-ID: <6B83B100-00DE-43EA-AF3F-0166074ACEC4@gmail.com> References: <83tttdqpko.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29032"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 65105@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 06 00:50:08 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 1qSQ64-0007Oh-FJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Aug 2023 00:50:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSQ61-0006CZ-5V; Sat, 05 Aug 2023 18:50: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 1qSQ5y-0006CB-UX for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2023 18:50: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 1qSQ5y-0002zH-M4 for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2023 18:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSQ5y-0001Tc-Gy for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2023 18:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: JD Smith Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Aug 2023 22:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65105 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 65105-submit@debbugs.gnu.org id=B65105.16912757735630 (code B ref 65105); Sat, 05 Aug 2023 22:50:02 +0000 Original-Received: (at 65105) by debbugs.gnu.org; 5 Aug 2023 22:49:33 +0000 Original-Received: from localhost ([127.0.0.1]:58317 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSQ5V-0001Sk-CN for submit@debbugs.gnu.org; Sat, 05 Aug 2023 18:49:33 -0400 Original-Received: from mail-il1-x133.google.com ([2607:f8b0:4864:20::133]:49186) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSQ5Q-0001SR-Pb for 65105@debbugs.gnu.org; Sat, 05 Aug 2023 18:49:32 -0400 Original-Received: by mail-il1-x133.google.com with SMTP id e9e14a558f8ab-3492ef885ffso12084325ab.2 for <65105@debbugs.gnu.org>; Sat, 05 Aug 2023 15:49:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691275763; x=1691880563; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=qYrbsKUGwUoaQIzjcCXS7VLsnUyro4IiNi6wVNUx2KA=; b=Dv5NduEXg50p7rwM2XQ0YodDuQliiFgHdopK+nQaVnlaS8dUGkE/f5/6ywDaIaGf8d soyjjIRFC5vULNTdLGkdxxKaLbFHaYMdbvPF+Zu/0Kb9eQSkjVg1VfOLad+Ubwwja9ya BLpgbBzzmqXyQO2G4w2LegL0bT69QlBJpHaAIYI4GvRmAAjBmZHJFEatUygdYuwZoyUt QRQiWfMMZfto1xRLwR+Xh+gsLdNi2+62ShXrQ4Y2nJ/Q8KgK+L6qa55wL3R9ag+OVp6u vYylHF/Wv0PTUa78bd29FKwPTuPkBRb1xzhmZe6jU6z0cPxdzmofKdp/+LIE7lJy+q91 mqLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691275763; x=1691880563; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qYrbsKUGwUoaQIzjcCXS7VLsnUyro4IiNi6wVNUx2KA=; b=OgZuI1JL+CDf22TluSh9s4tsyxqAcf0zGw3JPwiOgiC/3q69X9mymzU7xaBt5ZXlYN dT/tBRUVBCoeQfApq0V4XpH7L2G9n80D1ypqcXVo063GJ8GV6I65CznrVUwWePiXuULU keXUW1TESdkbFo1ChoxZGbvgyikVLAPA/1mmQtTuLkjMLabl+nAVrHXhIoCsD6SQn6me VXGUrc4NA6AV9ICLgZN7HpASI5lw+l5TKoSsbE+1AueIHsYpF4jVDcSvhKk686DNeDzf xmYyMV9IzvmesXpqqlXkm5XJuY4Rk0tIrodEVETNqQM2ZTIExyjDCoIBeL5fnBtGggN8 unHw== X-Gm-Message-State: AOJu0YyIqxvLcEi613D3kqnK4RpT+D0CqU8BgGvZi+L/9t7wJtMBJqK0 oTEyAErkRsT3hT14YWlmm9s= X-Google-Smtp-Source: AGHT+IFaEKclneOz/Amznrlorjx1YUFkIDj6xsqW3Qu+HwW7Tw62AuK8bl0/YtjbeqT2k9lh8rjFyA== X-Received: by 2002:a05:6e02:1aa1:b0:345:af1c:29c4 with SMTP id l1-20020a056e021aa100b00345af1c29c4mr7340286ilv.25.1691275762926; Sat, 05 Aug 2023 15:49:22 -0700 (PDT) Original-Received: from smtpclient.apple (cm-24-53-184-115.buckeyecom.net. [24.53.184.115]) by smtp.gmail.com with ESMTPSA id z2-20020a92cd02000000b003488d15c5adsm1613135iln.22.2023.08.05.15.49.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Aug 2023 15:49:22 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3731.700.6) 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:266822 Archived-At: That=E2=80=99s probably the right approach. Or even simpler, allocate = two identical strings and alternate. Thanks. > On Aug 5, 2023, at 6:46 PM, Dmitry Gutov wrote: >=20 > On 05/08/2023 23:49, JD Smith wrote: >> Aha, thanks. It does make sense from an optimization standpoint to = =E2=80=9Cgang=E2=80=9D properties in this manner. Are you aware of any = approach that allow re-using a string for =E2=80=98display, but permits = consecutive intervals to remain distinct? >=20 > Overlays? But they have certain performance problems when their number = grows. >=20 > Or you could try resolving this manually: when the previous character = is assigned with the same line, do a copy-sequence, and when it's a = different one, you can use the "singleton" one.