diff options
| author | Richard M. Stallman | 2004-12-05 23:34:44 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-12-05 23:34:44 +0000 |
| commit | c721eee5e3f5fcd0ef53de43cea712146d08d131 (patch) | |
| tree | 9151070e679a580a952a192f3b9805c24af69410 /src | |
| parent | 33b3f667edf593f9fd6943b41d6b37b69a1511a5 (diff) | |
| download | emacs-c721eee5e3f5fcd0ef53de43cea712146d08d131.tar.gz emacs-c721eee5e3f5fcd0ef53de43cea712146d08d131.zip | |
(regex_compile): Fix end-of-pattern case for space.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/regex.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 198bbb931c7..d21df41fe56 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2004-12-05 Richard M. Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * regex.c (regex_compile): Fix end-of-pattern case for space. | ||
| 4 | |||
| 1 | 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 5 | 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 2 | 6 | ||
| 3 | * macterm.h (cfstring_create_with_utf8_cstring): Add prototype. | 7 | * macterm.h (cfstring_create_with_utf8_cstring): Add prototype. |
diff --git a/src/regex.c b/src/regex.c index a53eac29216..130765134f5 100644 --- a/src/regex.c +++ b/src/regex.c | |||
| @@ -2558,8 +2558,8 @@ regex_compile (pattern, size, syntax, bufp) | |||
| 2558 | } | 2558 | } |
| 2559 | /* If the spaces are followed by a repetition op, | 2559 | /* If the spaces are followed by a repetition op, |
| 2560 | treat them normally. */ | 2560 | treat them normally. */ |
| 2561 | if (p1 == pend | 2561 | if (p1 != pend |
| 2562 | || (*p1 == '*' || *p1 == '+' || *p1 == '?' | 2562 | && (*p1 == '*' || *p1 == '+' || *p1 == '?' |
| 2563 | || (*p1 == '\\' && p1 + 1 != pend && p1[1] == '{'))) | 2563 | || (*p1 == '\\' && p1 + 1 != pend && p1[1] == '{'))) |
| 2564 | goto normal_char; | 2564 | goto normal_char; |
| 2565 | 2565 | ||