aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorMattias EngdegÄrd2019-09-23 18:56:30 +0200
committerMattias EngdegÄrd2019-09-25 18:09:42 +0200
commita773a6474897356cd78aeea092d2c1a51ede23f9 (patch)
tree9935673b464dc14a03a70a36c6ce7756404f0337 /doc/lispref
parent84567150e757ee3991a4b4f96a27080f92cb6d48 (diff)
downloademacs-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/lispref')
-rw-r--r--doc/lispref/searching.texi3
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
1566The returned string may be @var{string} itself if it does not contain
1567any special characters.
1565@end defun 1568@end defun
1566 1569
1567@cindex optimize regexp 1570@cindex optimize regexp