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

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

bug#56344: 28.1; cannot copy-paste string with utf-8 letters (i.e. ²): "


From: Lars Ingebrigtsen
Subject: bug#56344: 28.1; cannot copy-paste string with utf-8 letters (i.e. ²): "Non-ASCII string must be encoded in advance"
Date: Thu, 22 Sep 2022 12:42:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

"Dr. Arne Babenhauserheide" <arne_bab@web.de> writes:

>> I have not yet found what in my config could be causing it, but I am
>> still searching.
>
> I finally found the reason for the problem:
> In org-custom-link-completion.el I had defined string-replace as:
>
> (defun string-replace (this withthat in)
>   "replace THIS with WITHTHAT' in the string IN"
>   (with-temp-buffer
>     (insert in)
>     (goto-char (point-min))
>     (replace-string this withthat)
>     (buffer-substring (point-min) (point-max))))
>
> But this overwrote an internal function.
>
> After removing this (and its usages in my code replaced by plain
> replace-regexp-in-string) my problems with encoding are gone.
>
> So this can now be closed as "user broke emacs with config" …

Ah, I see.  :-)

> Thank you for your patience!

No problem.





reply via email to

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