From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#14013: 24.3.50; dired-isearch-filenames-regexp is matching text outside filenames Date: Sat, 23 Mar 2013 02:49:37 +0200 Organization: JURTA Message-ID: <87ppyqyld2.fsf@mail.jurta.org> References: <87li9hk5e5.fsf@web.de> <87wqt1vd0o.fsf@mail.jurta.org> <87d2ut4mji.fsf@web.de> <87620lvavl.fsf@mail.jurta.org> <87zjxxsd6c.fsf@web.de> <87vc8ke4os.fsf@mail.jurta.org> <8738vowa1i.fsf@web.de> <87k3p0cle3.fsf@mail.jurta.org> <87d2uscjeh.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1364001071 4643 80.91.229.3 (23 Mar 2013 01:11:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Mar 2013 01:11:11 +0000 (UTC) Cc: 14013@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 23 02:11:37 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UJCzf-00006v-0T for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Mar 2013 02:11:35 +0100 Original-Received: from localhost ([::1]:47074 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJCzG-0005QQ-Tk for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Mar 2013 21:11:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJCzD-0005QJ-Nw for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2013 21:11:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJCz9-0006j6-Nn for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2013 21:11:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37280) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJCz9-0006j2-KM for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2013 21:11:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UJD14-0000pr-7L for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2013 21:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Mar 2013 01:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14013 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14013-submit@debbugs.gnu.org id=B14013.13640011773200 (code B ref 14013); Sat, 23 Mar 2013 01:13:02 +0000 Original-Received: (at 14013) by debbugs.gnu.org; 23 Mar 2013 01:12:57 +0000 Original-Received: from localhost ([127.0.0.1]:41389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UJD0z-0000pZ-C3 for submit@debbugs.gnu.org; Fri, 22 Mar 2013 21:12:57 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:38823 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UJD0w-0000pR-1n for 14013@debbugs.gnu.org; Fri, 22 Mar 2013 21:12:55 -0400 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 798F1258B92960; Fri, 22 Mar 2013 18:10:53 -0700 (PDT) In-Reply-To: <87d2uscjeh.fsf@web.de> (Michael Heerdegen's message of "Fri, 22 Mar 2013 02:28:38 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:72812 Archived-At: >> The patch is complete and it's working in my tests for ".*" and ".+". > > Just ".*" also works for me as it should (as supposed to before, which > shows that I indeed use your new code). But if I try "a.*", the > following matches begin before the file names (my user name ends with > the letter a). When Isearch doesn't find "a.*" in the current filename it continues searching from the beginning of the next Dired line and finds a match in the details area that contains user names and permissions. It seems the search should be limited to the end of the filename on the current line. But setting the BOUND arg of `search-forward-regexp' to the end of the filename will cause Isearch to fail for the whole buffer. BTW, I looked at your previous proof of concept and noticed that even though it works correctly, its (goto-char (1+ beg)) is very inefficient especially in the case of ".*" where is advances slowly by 1 character offset for every search function call in the details area outside of filenames.