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:04:22 +0000 Message-ID: <87sfi6jdd5.fsf@localhost> References: <87wn7ijef0.fsf@localhost> <83mt8et7na.fsf@gnu.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="9630"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59603-done@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:04:18 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 1oyr6g-0002FD-2d for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Nov 2022 10:04:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyr6T-0006wX-2g; Sat, 26 Nov 2022 04:04:05 -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 1oyr6Q-0006w4-Fa for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2022 04:04:02 -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 1oyr6Q-0007HM-6G for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2022 04:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oyr6P-0002Jy-Sc for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2022 04:04: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:04: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-done@debbugs.gnu.org id=D59603.16694534348910 (code D ref 59603); Sat, 26 Nov 2022 09:04:01 +0000 Original-Received: (at 59603-done) by debbugs.gnu.org; 26 Nov 2022 09:03:54 +0000 Original-Received: from localhost ([127.0.0.1]:37796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyr6I-0002Jc-0m for submit@debbugs.gnu.org; Sat, 26 Nov 2022 04:03:54 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:42335) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyr6F-0002JP-Vo for 59603-done@debbugs.gnu.org; Sat, 26 Nov 2022 04:03:52 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 1C974240104 for <59603-done@debbugs.gnu.org>; Sat, 26 Nov 2022 10:03:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1669453426; bh=CVwwKHmvVo/+2IKRkrN+M0Mf3rHj4SgL3xdfKWICakw=; h=From:To:Cc:Subject:Date:From; b=a8g4wOdfx1cNTwuMAnNWNsCGG83wSR/araW5CqLUzKHDx7a4Cn2/EGRqxqE02eeSH kiebjBYsmU/MoyzXR6ZpaQPmFHu6b4i3i+7NmtQheTEethdaP2HmxSkkmaUbR7GtP7 as529VXch/Pz/QY1PrXT8Dl8ACcLaNaCQBZJdA/wnnW1bRQlRYQFlfhvNU1EYJgrc3 Mmd6xn21gNFT89wUWJMqamquSf8k2VHaSSHyA8BypTlrSx5FHydY3aepXrUHn5wUiw 10RECWB+2N9Hwtblu+RG0ndJ5o/vPG/VqHzUG64FIugOiEOyKQrFahpjeRL4z/gnKm bTPjdpG9YRoGQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NK5PW6lBmz6tlh; Sat, 26 Nov 2022 10:03:43 +0100 (CET) In-Reply-To: <83mt8et7na.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:249055 Archived-At: Eli Zaretskii writes: >> (defmacro ucs-normalize-string (ucs-normalize-region) >> `(with-temp-buffer >> (insert str) >> (,ucs-normalize-region (point-min) (point-max)) >> (buffer-string))) >> >> It apparently uses undefined variable `str', which does not look right. > > It's a macro, not a function. So STR could come from the code which calls > the macro. Look how it is used in that file, and you will see what I mean. I understand. But this macro is not private (no --). I feel like using "str" there is a questionable code style. >> Also, no docstring. > > I added a doc string. Thanks! The new docstring implies that STR is an argument, doesn't it? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at