[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.
0001-Allow-regexp-quote-to-return-its-argument.patch
Description: Binary data
- Returning argument string (regexp-quote),
Mattias Engdegård <=
- Re: Returning argument string (regexp-quote), Andreas Schwab, 2019/09/24
- Re: Returning argument string (regexp-quote), Eli Zaretskii, 2019/09/24
- Re: Returning argument string (regexp-quote), Mattias Engdegård, 2019/09/24
- Re: Returning argument string (regexp-quote), Paul Eggert, 2019/09/24
- Re: Returning argument string (regexp-quote), Eli Zaretskii, 2019/09/24
- Re: Returning argument string (regexp-quote), Mattias Engdegård, 2019/09/25
- Re: Returning argument string (regexp-quote), Eli Zaretskii, 2019/09/25
- Compilation failure on macOS 10.15 Catalina, Zach Pearson, 2019/09/25
- Re: Compilation failure on macOS 10.15 Catalina, mituharu, 2019/09/25
- Re: Compilation failure on macOS 10.15 Catalina, Zach Pearson, 2019/09/25