From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#59603: 28.1.90; `ucs-normalize-string' fails to work Date: Sat, 26 Nov 2022 09:37:47 +0000 Message-ID: <87pmdajbtg.fsf@localhost> References: <87wn7ijef0.fsf@localhost> <83mt8et7na.fsf@gnu.org> <87sfi6jdd5.fsf@localhost> <83h6ymt6fs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5221"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59603@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 26 10:38:21 2022 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 1oyrdc-00014n-Pz for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Nov 2022 10:38:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyrdO-00067a-CC; Sat, 26 Nov 2022 04:38:06 -0500 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 1oyrdM-00067E-3P for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2022 04:38:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oyrdK-0005rj-MT for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2022 04:38:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oyrdJ-00036y-M4 for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2022 04:38:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Nov 2022 09:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59603 X-GNU-PR-Package: emacs Original-Received: via spool by 59603-submit@debbugs.gnu.org id=B59603.166945544311912 (code B ref 59603); Sat, 26 Nov 2022 09:38:01 +0000 Original-Received: (at 59603) by debbugs.gnu.org; 26 Nov 2022 09:37:23 +0000 Original-Received: from localhost ([127.0.0.1]:37828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyrcg-000364-F2 for submit@debbugs.gnu.org; Sat, 26 Nov 2022 04:37:22 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:60939) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyrcc-00035o-36 for 59603@debbugs.gnu.org; Sat, 26 Nov 2022 04:37:21 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 079D0240103 for <59603@debbugs.gnu.org>; Sat, 26 Nov 2022 10:37:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1669455432; bh=JDjjFctRfXoMBXyrAAAhnYY9VvGTxStX9oM4Q9m2KnA=; h=From:To:Cc:Subject:Date:From; b=DnZphfz3AYUoRDEUN94+B813rJvCtWBiqboVm3aUy6Ds9Ez5Se8LR0iTSZHVFwPSw omNlmoJSCHwlH6duZqLFkAXqTX6QlrNzFnzobApJ5tQhOM0sjH+ZZzTzNnJ8RR5SjK xEIEiRUELrC+wFjtE58immc99O/D0Cpobce67x/LEOBdtWn20Xkeqhn/v7klE1NWGj xloW8fdKs21dRHoBNIVLw0LSwSkOfrKhJ+2BZ0bIr6g35ScgcF6uZz+y/YtFxXGpId BPSsNzTkdUwj983475RSwvhRSbHMRvePwKcUaXWeMr1v3n0mM+EsjZTny/p0UCwMtj SZlRxOPJEPVFg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NK68434Vcz9rxL; Sat, 26 Nov 2022 10:37:07 +0100 (CET) In-Reply-To: <83h6ymt6fs.fsf@gnu.org> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:249058 Archived-At: Eli Zaretskii writes: >> I understand. But this macro is not private (no --). I feel like using >> "str" there is a questionable code style. > > It's too late to change that: this macro is very old and predates the -- > conventions. I see. >> >> Also, no docstring. >> > >> > I added a doc string. >>=20 >> Thanks! The new docstring implies that STR is an argument, doesn't it? > > It doesn't. I feel a bit confused now. I am now reviewing D.6 Tips for Documentation Strings section of Elisp manual: =E2=80=A2 When a function=E2=80=99s documentation string mentions the va= lue of an argument of the function, use the argument name in capital letters as if it were a name for that value. Thus, the documentation string of the function =E2=80=98eval=E2=80=99 refers to its first argu= ment as =E2=80=98FORM=E2=80=99, because the actual argument name is =E2=80=98f= orm=E2=80=99: Evaluate FORM and return its value. Also write metasyntactic variables in capital letters, such as when you show the decomposition of a list or vector into subunits, some of which may vary. =E2=80=98KEY=E2=80=99 and =E2=80=98VALUE=E2=80=99 = in the following example illustrate this practice: The argument TABLE should be an alist whose elements have the form (KEY . VALUE). Here, KEY is ... =E2=80=A2 Never change the case of a Lisp symbol when you mention it in = a doc string. If the symbol=E2=80=99s name is =E2=80=98foo=E2=80=99, write = =E2=80=9Cfoo=E2=80=9D, not =E2=80=9CFoo=E2=80=9D (which is a different symbol). I do see that uppercase symbol names may not always refer to the arguments, but don't `str' fit better into the conventions? It is the symbol to be used in the macro, after all. Or do I miss something? --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at