diff options
| author | Mattias EngdegÄrd | 2019-09-23 18:56:30 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2019-09-25 18:09:42 +0200 |
| commit | a773a6474897356cd78aeea092d2c1a51ede23f9 (patch) | |
| tree | 9935673b464dc14a03a70a36c6ce7756404f0337 /doc | |
| parent | 84567150e757ee3991a4b4f96a27080f92cb6d48 (diff) | |
| download | emacs-a773a6474897356cd78aeea092d2c1a51ede23f9.tar.gz emacs-a773a6474897356cd78aeea092d2c1a51ede23f9.zip | |
Allow regexp-quote to return its argument
* src/search.c (Fregexp_quote): Only allocate a new string if needed.
* doc/lispref/searching.texi (Regexp Functions):
* etc/NEWS (Incompatible Lisp Changes): Document.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/searching.texi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/lispref/searching.texi b/doc/lispref/searching.texi index 1286b63446a..65f56b490fd 100644 --- a/doc/lispref/searching.texi +++ b/doc/lispref/searching.texi | |||
| @@ -1562,6 +1562,9 @@ whitespace: | |||
| 1562 | (concat "\\s-" (regexp-quote string) "\\s-")) | 1562 | (concat "\\s-" (regexp-quote string) "\\s-")) |
| 1563 | @end group | 1563 | @end group |
| 1564 | @end example | 1564 | @end example |
| 1565 | |||
| 1566 | The returned string may be @var{string} itself if it does not contain | ||
| 1567 | any special characters. | ||
| 1565 | @end defun | 1568 | @end defun |
| 1566 | 1569 | ||
| 1567 | @cindex optimize regexp | 1570 | @cindex optimize regexp |