[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: re-search-forward hangs
From: |
Robert Girault |
Subject: |
Re: re-search-forward hangs |
Date: |
Mon, 30 Jul 2018 10:22:24 -0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) |
Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
> Hi,
>
> emacs -Q, when evaluating from in scratch-buffer
>
>
> (while (re-search-forward "" nil t 1))
>
> Emacs hangs.
>
> Same with plain
>
> (while (search-forward "" nil t 1))
>
> Expect it terminating.
Why do you expect it to terminate?
> Are there reasons for this?
The obvious reason is that "" is found anywhere, so this search will
always succeed. This makes sense to me. Why do you think this
shouldn't happen?