]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fregexp_quote): Do not precede a literal `]' with two backslashes to
authorLuc Teirlinck <teirllm@auburn.edu>
Wed, 1 Mar 2006 23:52:22 +0000 (23:52 +0000)
committerLuc Teirlinck <teirllm@auburn.edu>
Wed, 1 Mar 2006 23:52:22 +0000 (23:52 +0000)
try to make clear that it has a literal meaning; it does not do that.
(It could close a character alternative containing a backslash.)

src/search.c

index 04b58c78d3fbad87ee7737de7a1970ba1e07e9a8..b92812597d5de581ba0b0d428321d13d69b0586a 100644 (file)
@@ -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 == '$')