bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#51292: 27.2; Reversing strings with unicode combining characters


From: Lars Ingebrigtsen
Subject: bug#51292: 27.2; Reversing strings with unicode combining characters
Date: Tue, 19 Oct 2021 22:50:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Emacs has string-reverse, obsolete since 25.1.  Perhaps we should
> reintroduce it and use the definition from s?

Or...  well, that might break some people's code, so let's not do that.

And I'm not quite sure that such a function really makes sense.  How
often do you reverse a string for display purposes, anyway?

But it might make sense to add function to tokenize a string into
grapheme clusters -- I can see that being useful.  Then the caller can
chop and reverse the list of clusters as they wish.

`string-tokenize-graphemes'?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]