From: Luc Teirlinck Date: Wed, 1 Mar 2006 23:52:22 +0000 (+0000) Subject: (Fregexp_quote): Do not precede a literal `]' with two backslashes to X-Git-Tag: emacs-pretest-22.0.90~3822 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=66bc608238cb338729a6aa12994217dcc7f87b35;p=emacs.git (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.) --- diff --git a/src/search.c b/src/search.c index 04b58c78d3f..b92812597d5 100644 --- a/src/search.c +++ b/src/search.c @@ -3066,7 +3066,7 @@ DEFUN ("regexp-quote", Fregexp_quote, Sregexp_quote, 1, 1, 0, for (; in != end; in++) { - if (*in == '[' || *in == ']' + if (*in == '[' || *in == '*' || *in == '.' || *in == '\\' || *in == '?' || *in == '+' || *in == '^' || *in == '$')