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

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

bug#67536: 29.1; Calc mode's math-read-preprocess-string conses unnecess


From: Raffael Stocker
Subject: bug#67536: 29.1; Calc mode's math-read-preprocess-string conses unnecessarily
Date: Fri, 01 Dec 2023 22:10:22 +0100
User-agent: mu4e 1.10.8; emacs 29.1

Eli Zaretskii <eliz@gnu.org> writes:

>> I use cl-flet and (eval-when-compile (require 'cl-lib)).  I hope that is
>> ok.
>
> I'd prefer a simple internal function, or a lambda.

I went with the lambda, it is the more concise choice.

>> +      (buffer-string))))
>
> I think buffer-substring-no-properties would be better than
> buffer-string, as we don't need to copy any text properties, right?

Yes, indeed.  I fixed that too.

Regards,
Raffael

Attachment: 0001-lisp-calc-calc-aent.el-math-read-preprocess-string-c.patch
Description: optimized math-read-preprocess-string


reply via email to

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