diff options
| author | Luc Teirlinck | 2006-03-01 23:52:22 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2006-03-01 23:52:22 +0000 |
| commit | 66bc608238cb338729a6aa12994217dcc7f87b35 (patch) | |
| tree | a09c9944933d7cf5af889585ff0256846da9af56 /src | |
| parent | 0bbe0c9ca4c97858b0dcdda6bcef7365a7431ac5 (diff) | |
| download | emacs-66bc608238cb338729a6aa12994217dcc7f87b35.tar.gz emacs-66bc608238cb338729a6aa12994217dcc7f87b35.zip | |
(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.)
Diffstat (limited to 'src')
| -rw-r--r-- | src/search.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
| 3066 | 3066 | ||
| 3067 | for (; in != end; in++) | 3067 | for (; in != end; in++) |
| 3068 | { | 3068 | { |
| 3069 | if (*in == '[' || *in == ']' | 3069 | if (*in == '[' |
| 3070 | || *in == '*' || *in == '.' || *in == '\\' | 3070 | || *in == '*' || *in == '.' || *in == '\\' |
| 3071 | || *in == '?' || *in == '+' | 3071 | || *in == '?' || *in == '+' |
| 3072 | || *in == '^' || *in == '$') | 3072 | || *in == '^' || *in == '$') |