mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 08:43:40 -07:00
(reb-update-overlays): Do not mark zero-width regexps as invalid
but rather at least count them correctly.
This commit is contained in:
parent
904bb06ca2
commit
640eb069c5
2 changed files with 9 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2007-03-18 Detlev Zundel <dzu@gnu.org>
|
||||
|
||||
* emacs-lisp/re-builder.el (reb-update-overlays): Do not mark zero-width
|
||||
regexps as invalid but rather at least count them correctly.
|
||||
|
||||
2007-03-18 Thien-Thi Nguyen <ttn@gnu.org>
|
||||
|
||||
* net/tls.el (open-tls-stream): In handshake-waiting loop,
|
||||
|
|
|
|||
|
|
@ -639,11 +639,13 @@ If SUBEXP is non-nil mark only the corresponding sub-expressions."
|
|||
(set-buffer reb-target-buffer)
|
||||
(reb-delete-overlays)
|
||||
(goto-char (point-min))
|
||||
(while (and (re-search-forward re (point-max) t)
|
||||
(while (and (not (eobp))
|
||||
(re-search-forward re (point-max) t)
|
||||
(or (not reb-auto-match-limit)
|
||||
(< matches reb-auto-match-limit)))
|
||||
(if (= 0 (length (match-string 0)))
|
||||
(error "Empty regular expression!"))
|
||||
(unless (eobp)
|
||||
(forward-char 1)))
|
||||
(let ((i 0)
|
||||
suffix max-suffix)
|
||||
(setq matches (1+ matches))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue