[Top][All Lists]

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

Returning argument string (regexp-quote)

From: Mattias Engdegård
Subject: Returning argument string (regexp-quote)
Date: Tue, 24 Sep 2019 13:28:15 +0200

In most calls to 'regexp-quote', the argument doesn't actually need converting. 
It would be nice to avoid the allocation in that case. Patch.

More generally, do we need to preserve allocation for functions not 
specifically documented to return new strings? I can imagine there being code 
that depend on it by accident, but string mutation is rare.

Attachment: 0001-Allow-regexp-quote-to-return-its-argument.patch
Description: Binary data

reply via email to

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