[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Returning argument string (regexp-quote)
From: |
Andreas Schwab |
Subject: |
Re: Returning argument string (regexp-quote) |
Date: |
Tue, 24 Sep 2019 13:49:21 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
On Sep 24 2019, Mattias Engdegård <address@hidden> wrote:
> diff --git a/src/search.c b/src/search.c
> index 1e57d2ecbe..fc9b85f413 100644
> --- a/src/search.c
> +++ b/src/search.c
> @@ -3138,10 +3138,12 @@ DEFUN ("regexp-quote", Fregexp_quote, Sregexp_quote,
> 1, 1, 0,
> }
>
> Lisp_Object result
> - = make_specified_string (temp,
> - SCHARS (string) + backslashes_added,
> - out - temp,
> - STRING_MULTIBYTE (string));
> + = (out - temp > SBYTES (string)
backslashes_added > 0
Andreas.
--
Andreas Schwab, SUSE Labs, address@hidden
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
- Returning argument string (regexp-quote), Mattias Engdegård, 2019/09/24
- Re: Returning argument string (regexp-quote),
Andreas Schwab <=
- 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
- Re: Compilation failure on macOS 10.15 Catalina, mituharu, 2019/09/25