all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Mattias Engdegård" <mattias.engdegard@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: master 49e243c0c85: Avoid resizing mutation in subst-char-in-string, take two
Date: Wed, 15 May 2024 22:19:08 +0200	[thread overview]
Message-ID: <6AD2F713-62AF-4A37-9FB0-2C18DB4AE9BB@gmail.com> (raw)
In-Reply-To: <86o797j60o.fsf@gnu.org>

15 maj 2024 kl. 20.15 skrev Eli Zaretskii <eliz@gnu.org>:

>> 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. 
> 
> "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,
> 
> 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.




      reply	other threads:[~2024-05-15 20:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-13 17:53 master 49e243c0c85: Avoid resizing mutation in subst-char-in-string, take two Eli Zaretskii
2024-05-13 19:20 ` Mattias Engdegård
2024-05-14  6:06   ` Eli Zaretskii
2024-05-14 10:44     ` Mattias Engdegård
2024-05-14 11:35       ` Eli Zaretskii
2024-05-15 12:29         ` Mattias Engdegård
2024-05-15 12:40           ` Eli Zaretskii
2024-05-15 17:29             ` Mattias Engdegård
2024-05-15 18:15               ` Eli Zaretskii
2024-05-15 20:19                 ` Mattias Engdegård [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6AD2F713-62AF-4A37-9FB0-2C18DB4AE9BB@gmail.com \
    --to=mattias.engdegard@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.