HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bbe0c9
)
(Fregexp_quote): Do not precede a literal `]' with two backslashes to
author
Luc Teirlinck
<teirllm@auburn.edu>
Wed, 1 Mar 2006 23:52:22 +0000
(23:52 +0000)
committer
Luc 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
patch
|
blob
|
blame
|
history
diff --git
a/src/search.c
b/src/search.c
index
04b58c7
..
b928125
100644
(file)
--- 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 == '$')