Subject: bug#14013: 24.3.50; dired-isearch-filenames-regexp is matching text outside filenames

From: Michael Heerdegen <[email-masked]>
Date: Tue, 15 Feb 2022 04:12:41 +0100

Juri Linkov <[email-masked]> writes:

> To implement ^, I see no way other than special handling:
> when a regexp begins with ^, then after removing ^ from the regexp,
> call 'looking-at' at the beginning of the file name.

Just an idea: Seems that currently \= matches the position at the
beginning of the file names!  Could we maybe just guarantee and document
that?

If \= works reliably, we may also transform a leading \` in the regexp
into \=.  ^ is not so important in my eyes, it's easier to type than \`,
but the semantics of "beginning of line" is not as clear in this context
as "beginning of the object searched". If \= and \` would work, I would
be very happy.

Michael.