From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.devel Subject: Re: master 49e243c0c85: Avoid resizing mutation in subst-char-in-string, take two Date: Wed, 15 May 2024 22:19:08 +0200 Message-ID: <6AD2F713-62AF-4A37-9FB0-2C18DB4AE9BB@gmail.com> References: <865xvhy4wn.fsf@gnu.org> <8AF4F364-9030-4634-91C5-79E297E5335B@gmail.com> <861q65x6yp.fsf@gnu.org> <718E190B-3C90-4304-87D8-69E82A1C7AC9@gmail.com> <86eda4wrru.fsf@gnu.org> <86o797tfi0.fsf@gnu.org> <5E014BBB-D2F5-4B3E-8555-6B7A8D11F15E@gmail.com> <86o797j60o.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5000"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 15 22:20:11 2024 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 1s7L6h-000156-1m for ged-emacs-devel@m.gmane-mx.org; Wed, 15 May 2024 22:20:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7L5p-0007m3-GM; Wed, 15 May 2024 16:19:17 -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 1s7L5n-0007lc-JQ for emacs-devel@gnu.org; Wed, 15 May 2024 16:19:15 -0400 Original-Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s7L5k-0002mY-Se; Wed, 15 May 2024 16:19:14 -0400 Original-Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2e1d6166521so67778731fa.1; Wed, 15 May 2024 13:19:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715804351; x=1716409151; darn=gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject :date:message-id:reply-to; bh=LzK0sLvetJBEN/zlnr+9NC0oj1rVIagMbRuPHniQndg=; b=O1STlSFZlTBSm89++L2JHJ9vB92SmzgShzkNeeFiC0am2ZGrn6qH7/sg7qPp7gWl+M CHtZZxJfeBptNykRrhJsyIYBndoQSq5Bcp+ZkxOQa2aiNW/MN66tsVtBzXEe/oInK5qm /eMmmEMECWBVaS6On5wej6TzytuT0uDpqSGQpxw3quEFM+w57R9m7g4aeyuwlm0y9a/G DxlxrCuTsy19wrUCREKfbcK2f4UC8Eab24ZpCCtZyukxvk3+R3qImlOlTa6hjt7yNfaU 8FG4zllLMqnDDE/6dkC2sPXmNHfi2kQti/TuWrTQ4mgoelIqhO8sGLpX8VuUGxD6asd2 NhhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715804351; x=1716409151; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=LzK0sLvetJBEN/zlnr+9NC0oj1rVIagMbRuPHniQndg=; b=YH4XzUTIQfGEgGm2FbbAly0DmXVMz5251e2Oe0+rtPBmvyTDykThW4PaYQXp4ch/g9 YQrgEg3gchf5sriCrF2hByCMlNIdBAYt3Qr99+PflmIosds+K3B9cCvoVXCVReEuWE4k Vwi01NAU5sbBrP/5bxL19Dwyvr9xxO48fGskJtuq0kdViqe5pS8CQtkOgQ1XdPsWOluK gg1rVftfj4wBCNEBwBOjuamJZOq0xzxXkG9mfOcbEEIP5KftMbL7cDRduqeZca1uznuf /sJj1WUfu/9P0S7JJ4dyONjDSqOMvC50YtqxiqvkLX7pxMlX/Hc0BDwACnX3VMu7y6XI U+Mw== X-Gm-Message-State: AOJu0YxBxcB3Q2mS5PScQFc4bTvwWFL+lAgnAKXS51wTCOnyFZW7sCx7 o0pQhbLzXHbpDmnfHihzHYNWCMWDzHXtysM4Boj+WLO/pNKQQirY6L0U/Q== X-Google-Smtp-Source: AGHT+IE1hLc+50cKXJDlYsMQRjEsdssFL4iqtPYC7Qlio2rzJePhKrr03A9b2uf/UHDq4jfqaNFHvA== X-Received: by 2002:a2e:a414:0:b0:2d8:79d6:454d with SMTP id 38308e7fff4ca-2e51b4784cemr55753581fa.23.1715804350636; Wed, 15 May 2024 13:19:10 -0700 (PDT) Original-Received: from smtpclient.apple (c80-217-1-132.bredband.tele2.se. [80.217.1.132]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2e68b7f66ecsm12511881fa.125.2024.05.15.13.19.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 May 2024 13:19:10 -0700 (PDT) In-Reply-To: <86o797j60o.fsf@gnu.org> X-Mailer: Apple Mail (2.3654.120.0.1.15) Received-SPF: pass client-ip=2a00:1450:4864:20::22f; envelope-from=mattias.engdegard@gmail.com; helo=mail-lj1-x22f.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:319269 Archived-At: 15 maj 2024 kl. 20.15 skrev Eli Zaretskii : >> It is very rare to see replacement exclusively confined to single = block, except for block 0 (ASCII). Scripts, even Latin, generally = transcend blocks and even planes.=20 >=20 > "Rare" is in the eye of the beholder. Imagine processing of Arabic or > Greek or Cyrillic text -- these replacements are natural there. That can very well be the case, but I haven't found any examples. Maybe = you are right and it would not be an unnatural thing to do, but then = string mutation itself is just uncommon and is definitely becoming more = so. Anyway, the little mutation I did find wasn't confined to any particular = non-Latin scripts or Unicode blocks. >> The usefulness of equal-length multibyte `aset` is very small, >=20 > I guess we'll have to agree to disagree about this. Certainly. > So I think these last aspects are not really relevant to the issue at > hand. That is true, it doesn't inform our decisions in this matter. Other than = perhaps tell us that we shouldn't be surprised if we don't find much = code that tries to replace one grapheme cluster (or emoji) with another = using `aset`, but that's admittedly not a very big help.