From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Howard Melman Newsgroups: gmane.emacs.bugs Subject: bug#51292: 27.2; Reversing strings with unicode combining characters Date: Tue, 19 Oct 2021 17:21:36 -0400 Message-ID: References: <2AC0A88D-4F2F-41A5-B945-8BB55260C0E8@gmail.com> <87fsswbyu0.fsf@gnus.org> <87y26oage0.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38369"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (darwin) To: 51292@debbugs.gnu.org Cancel-Lock: sha1:cq7gnNPshN+Xw2hxcRtvinM3nA4= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 19 23:22:18 2021 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 1mcwYs-0009rG-IM for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Oct 2021 23:22:18 +0200 Original-Received: from localhost ([::1]:42246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcwYr-0001rW-IS for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Oct 2021 17:22:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcwYc-0001rF-L0 for bug-gnu-emacs@gnu.org; Tue, 19 Oct 2021 17:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40589) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mcwYc-00081p-5L for bug-gnu-emacs@gnu.org; Tue, 19 Oct 2021 17:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mcwYb-0004rI-Rs for bug-gnu-emacs@gnu.org; Tue, 19 Oct 2021 17:22:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <2AC0A88D-4F2F-41A5-B945-8BB55260C0E8@gmail.com> Resent-From: Howard Melman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Oct 2021 21:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51292 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163467851318661 (code B ref -1); Tue, 19 Oct 2021 21:22:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Oct 2021 21:21:53 +0000 Original-Received: from localhost ([127.0.0.1]:52135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcwYS-0004qv-OW for submit@debbugs.gnu.org; Tue, 19 Oct 2021 17:21:52 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:45654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcwYR-0004qo-LS for submit@debbugs.gnu.org; Tue, 19 Oct 2021 17:21:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcwYR-0001qs-DD for bug-gnu-emacs@gnu.org; Tue, 19 Oct 2021 17:21:51 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:39810) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcwYP-0007mq-B8 for bug-gnu-emacs@gnu.org; Tue, 19 Oct 2021 17:21:51 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mcwYL-000947-Jo for bug-gnu-emacs@gnu.org; Tue, 19 Oct 2021 23:21:45 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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" Xref: news.gmane.io gmane.emacs.bugs:217608 Archived-At: Lars Ingebrigtsen writes: > Lars Ingebrigtsen 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