diff options
| author | Stefan Monnier | 2001-09-27 22:45:50 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2001-09-27 22:45:50 +0000 |
| commit | 09c4719eacd5308dfa1d762335f776c90d7a8d4d (patch) | |
| tree | 6767df07098f1201fed6125695c79d4b22415a92 /src | |
| parent | 37dbd369b5c3e08c3746b2643a9314bdbba20a48 (diff) | |
| download | emacs-09c4719eacd5308dfa1d762335f776c90d7a8d4d.tar.gz emacs-09c4719eacd5308dfa1d762335f776c90d7a8d4d.zip | |
(trivial_regexp_p): Catch \{N,M\} as well.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 24 | ||||
| -rw-r--r-- | src/search.c | 4 |
2 files changed, 15 insertions, 13 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ef8f02d95fc..4ab3a98d9a9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2001-09-27 Stefan Monnier <monnier@cs.yale.edu> | ||
| 2 | |||
| 3 | * search.c (trivial_regexp_p): Catch \{N,M\} as well. | ||
| 4 | |||
| 1 | 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il> | 5 | 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il> |
| 2 | 6 | ||
| 3 | * Makefile.in (shortlisp): Resync with loadup.el: add backquote, | 7 | * Makefile.in (shortlisp): Resync with loadup.el: add backquote, |
| @@ -32,23 +36,22 @@ | |||
| 32 | (try_scrolling, try_cursor_movement, redisplay_window): Give up on | 36 | (try_scrolling, try_cursor_movement, redisplay_window): Give up on |
| 33 | this round of redisplay if make_cursor_line_fully_visible fails. | 37 | this round of redisplay if make_cursor_line_fully_visible fails. |
| 34 | (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators. | 38 | (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators. |
| 35 | (try_cursor_movement, try_scrolling): Use them instead of | 39 | (try_cursor_movement, try_scrolling): Use them instead of integers. |
| 36 | integers. | ||
| 37 | 40 | ||
| 38 | * dispextern.h (required_matrix_width, required_matrix_height): | 41 | * dispextern.h (required_matrix_width, required_matrix_height): |
| 39 | Add prototypes. | 42 | Add prototypes. |
| 40 | 43 | ||
| 41 | * dispnew.c (required_matrix_width, required_matrix_height): New | 44 | * dispnew.c (required_matrix_width, required_matrix_height): |
| 42 | functions. | 45 | New functions. |
| 43 | (allocate_matrices_for_window_redisplay) | 46 | (allocate_matrices_for_window_redisplay) |
| 44 | (allocate_matrices_for_frame_redisplay: Use them. Remove | 47 | (allocate_matrices_for_frame_redisplay: Use them. |
| 45 | parameters CH_DIM. | 48 | Remove parameters CH_DIM. |
| 46 | 49 | ||
| 47 | * xdisp.c (display_mode_lines): Temporarily set selected_frame | 50 | * xdisp.c (display_mode_lines): Temporarily set selected_frame |
| 48 | and selected_window to the frame of the window whose mode-lines | 51 | and selected_window to the frame of the window whose mode-lines |
| 49 | are displayed, and to the window itself. | 52 | are displayed, and to the window itself. |
| 50 | (redisplay_window, redisplay_mode_lines): Don't set selected_frame | 53 | (redisplay_window, redisplay_mode_lines): Don't set selected_frame |
| 51 | here. | 54 | here. |
| 52 | 55 | ||
| 53 | 2001-09-25 Gerd Moellmann <gerd@gnu.org> | 56 | 2001-09-25 Gerd Moellmann <gerd@gnu.org> |
| 54 | 57 | ||
| @@ -56,8 +59,7 @@ | |||
| 56 | the image cache under us. | 59 | the image cache under us. |
| 57 | 60 | ||
| 58 | * xdisp.c (display_mode_element): If the mode element is a symbol | 61 | * xdisp.c (display_mode_element): If the mode element is a symbol |
| 59 | with a string value, use that string's multibyteness for | 62 | with a string value, use that string's multibyteness for displaying. |
| 60 | displaying. | ||
| 61 | 63 | ||
| 62 | * keyboard.c (read_char): Don't clear a message for a switch-frame | 64 | * keyboard.c (read_char): Don't clear a message for a switch-frame |
| 63 | event. From Stefan Monnier <monnier@cs.yale.edu>. | 65 | event. From Stefan Monnier <monnier@cs.yale.edu>. |
| @@ -87,8 +89,8 @@ | |||
| 87 | 89 | ||
| 88 | 2001-09-21 Gerd Moellmann <gerd@gnu.org> | 90 | 2001-09-21 Gerd Moellmann <gerd@gnu.org> |
| 89 | 91 | ||
| 90 | * sysdep.c (wait_for_termination) [POSIX_SIGNALS]: Terminate | 92 | * sysdep.c (wait_for_termination) [POSIX_SIGNALS]: |
| 91 | only if kill returns -1, and errno is ESRCH. | 93 | Terminate only if kill returns -1, and errno is ESRCH. |
| 92 | 94 | ||
| 93 | 2001-09-21 Markus Rost <rost@math.ohio-state.edu> | 95 | 2001-09-21 Markus Rost <rost@math.ohio-state.edu> |
| 94 | 96 | ||
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) | |||
| 962 | { | 962 | { |
| 963 | case '|': case '(': case ')': case '`': case '\'': case 'b': | 963 | case '|': case '(': case ')': case '`': case '\'': case 'b': |
| 964 | case 'B': case '<': case '>': case 'w': case 'W': case 's': | 964 | case 'B': case '<': case '>': case 'w': case 'W': case 's': |
| 965 | case 'S': case '=': | 965 | case 'S': case '=': case '{': case '}': |
| 966 | case 'c': case 'C': /* for categoryspec and notcategoryspec */ | 966 | case 'c': case 'C': /* for categoryspec and notcategoryspec */ |
| 967 | case '1': case '2': case '3': case '4': case '5': | 967 | case '1': case '2': case '3': case '4': case '5': |
| 968 | case '6': case '7': case '8': case '9': | 968 | case '6': case '7': case '8': case '9': |
| @@ -2417,7 +2417,7 @@ since only regular expressions have distinguished subexpressions.") | |||
| 2417 | return concat3 (before, newtext, after); | 2417 | return concat3 (before, newtext, after); |
| 2418 | } | 2418 | } |
| 2419 | 2419 | ||
| 2420 | /* Record point, the move (quietly) to the start of the match. */ | 2420 | /* Record point, then move (quietly) to the start of the match. */ |
| 2421 | if (PT >= search_regs.end[sub]) | 2421 | if (PT >= search_regs.end[sub]) |
| 2422 | opoint = PT - ZV; | 2422 | opoint = PT - ZV; |
| 2423 | else if (PT > search_regs.start[sub]) | 2423 | else if (PT > search_regs.start[sub]) |