aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/emacs-lisp/re-builder.el6
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 32b3e71373d..35a8ed78943 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-03-18 Detlev Zundel <dzu@gnu.org>
2
3 * emacs-lisp/re-builder.el (reb-update-overlays): Do not mark zero-width
4 regexps as invalid but rather at least count them correctly.
5
12007-03-18 Thien-Thi Nguyen <ttn@gnu.org> 62007-03-18 Thien-Thi Nguyen <ttn@gnu.org>
2 7
3 * net/tls.el (open-tls-stream): In handshake-waiting loop, 8 * net/tls.el (open-tls-stream): In handshake-waiting loop,
diff --git a/lisp/emacs-lisp/re-builder.el b/lisp/emacs-lisp/re-builder.el
index dc4562ab9bb..2d3b4832cda 100644
--- a/lisp/emacs-lisp/re-builder.el
+++ b/lisp/emacs-lisp/re-builder.el
@@ -639,11 +639,13 @@ If SUBEXP is non-nil mark only the corresponding sub-expressions."
639 (set-buffer reb-target-buffer) 639 (set-buffer reb-target-buffer)
640 (reb-delete-overlays) 640 (reb-delete-overlays)
641 (goto-char (point-min)) 641 (goto-char (point-min))
642 (while (and (re-search-forward re (point-max) t) 642 (while (and (not (eobp))
643 (re-search-forward re (point-max) t)
643 (or (not reb-auto-match-limit) 644 (or (not reb-auto-match-limit)
644 (< matches reb-auto-match-limit))) 645 (< matches reb-auto-match-limit)))
645 (if (= 0 (length (match-string 0))) 646 (if (= 0 (length (match-string 0)))
646 (error "Empty regular expression!")) 647 (unless (eobp)
648 (forward-char 1)))
647 (let ((i 0) 649 (let ((i 0)
648 suffix max-suffix) 650 suffix max-suffix)
649 (setq matches (1+ matches)) 651 (setq matches (1+ matches))