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

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

bug#59603: closed (28.1.90; `ucs-normalize-string' fails to work)


From: GNU bug Tracking System
Subject: bug#59603: closed (28.1.90; `ucs-normalize-string' fails to work)
Date: Sat, 26 Nov 2022 08:58:02 +0000

Your message dated Sat, 26 Nov 2022 10:57:45 +0200
with message-id <83mt8et7na.fsf@gnu.org>
and subject line Re: bug#59603: 28.1.90; `ucs-normalize-string' fails to work
has caused the debbugs.gnu.org bug report #59603,
regarding 28.1.90; `ucs-normalize-string' fails to work
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
59603: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59603
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 28.1.90; `ucs-normalize-string' fails to work Date: Sat, 26 Nov 2022 08:41:39 +0000
Hi,

I just stumbled upon `ucs-normalize-string' 

(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.
Also, no docstring.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



--- End Message ---
--- Begin Message --- Subject: Re: bug#59603: 28.1.90; `ucs-normalize-string' fails to work Date: Sat, 26 Nov 2022 10:57:45 +0200
> From: Ihor Radchenko <yantar92@posteo.net>
> Date: Sat, 26 Nov 2022 08:41:39 +0000
> 
> I just stumbled upon `ucs-normalize-string' 
> 
> (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.

> Also, no docstring.

I added a doc string.

Thanks.


--- End Message ---

reply via email to

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