diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2001-09-27 22:45:50 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2001-09-27 22:45:50 +0000 |
commit | 09c4719eacd5308dfa1d762335f776c90d7a8d4d (patch) | |
tree | 6767df07098f1201fed6125695c79d4b22415a92 /src/search.c | |
parent | 37dbd369b5c3e08c3746b2643a9314bdbba20a48 (diff) | |
download | emacs-09c4719eacd5308dfa1d762335f776c90d7a8d4d.tar.gz |
(trivial_regexp_p): Catch \{N,M\} as well.
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/search.c b/src/search.c index 0bf881565a9..ff70bb3d366 100644 --- a/src/search.c +++ b/src/search.c @@ -962,7 +962,7 @@ trivial_regexp_p (regexp) { case '|': case '(': case ')': case '`': case '\'': case 'b': case 'B': case '<': case '>': case 'w': case 'W': case 's': - case 'S': case '=': + case 'S': case '=': case '{': case '}': case 'c': case 'C': /* for categoryspec and notcategoryspec */ case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': @@ -2417,7 +2417,7 @@ since only regular expressions have distinguished subexpressions.") return concat3 (before, newtext, after); } - /* Record point, the move (quietly) to the start of the match. */ + /* Record point, then move (quietly) to the start of the match. */ if (PT >= search_regs.end[sub]) opoint = PT - ZV; else if (PT > search_regs.start[sub]) |