emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: directory names ending with a colon confuse dired


From: Johan Bockgård
Subject: Re: directory names ending with a colon confuse dired
Date: Sat, 23 Sep 2006 13:48:39 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

Chris Moore <address@hidden> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]