Commit 66bc6082 authored by Luc Teirlinck's avatar Luc Teirlinck

(Fregexp_quote): Do not precede a literal `]' with two backslashes to

try to make clear that it has a literal meaning; it does not do that.
(It could close a character alternative containing a backslash.)
parent 0bbe0c9c
...@@ -3066,7 +3066,7 @@ DEFUN ("regexp-quote", Fregexp_quote, Sregexp_quote, 1, 1, 0, ...@@ -3066,7 +3066,7 @@ DEFUN ("regexp-quote", Fregexp_quote, Sregexp_quote, 1, 1, 0,
for (; in != end; in++) for (; in != end; in++)
{ {
if (*in == '[' || *in == ']' if (*in == '['
|| *in == '*' || *in == '.' || *in == '\\' || *in == '*' || *in == '.' || *in == '\\'
|| *in == '?' || *in == '+' || *in == '?' || *in == '+'
|| *in == '^' || *in == '$') || *in == '^' || *in == '$')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment