GNU bug report logs - #51292
27.2; Reversing strings with unicode combining characters

Previous Next

Package: emacs;

Reported by: Howard Melman <hmelman <at> gmail.com>

Date: Tue, 19 Oct 2021 19:17:02 UTC

Severity: normal

Tags: wontfix

Found in version 27.2

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Howard Melman <hmelman <at> gmail.com>
To: 51292 <at> debbugs.gnu.org
Subject: bug#51292: 27.2; Reversing strings with unicode combining characters
Date: Tue, 19 Oct 2021 17:21:36 -0400
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Lars Ingebrigtsen <larsi <at> 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?

FWIW, I'm not invested in the outcome.  I haven't had a need
to do this but found the behavior curious.

> 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'?

I agree that seems potentially useful.

-- 

Howard





This bug report was last modified 3 years and 271 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.