Chris Moore <[EMAIL PROTECTED]> writes:
> The match data which the (match-beginning 1) refers to is that which
> was saved by the
>
> (re-search-forward dired-subdir-regexp nil t)
>
> not by the looking-at, and so the save-match-data call is really not
> needed.
The manual gives this piece of advice:
A search which fails may or may not alter the match data. In the
past, a failing search did not do this, but we may change it in
the future. So don't try to rely on the value of the match data
after a failing search.
(info "(elisp)Simple Match Data")
--
Johan Bockgård
_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug