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: Thu, 21 Mar 2013 02:45:34 +0200 Organization: JURTA Message-ID: <87620lvavl.fsf@mail.jurta.org> References: <87li9hk5e5.fsf@web.de> <87wqt1vd0o.fsf@mail.jurta.org> <87d2ut4mji.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1363827140 17384 80.91.229.3 (21 Mar 2013 00:52:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Mar 2013 00:52:20 +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 Thu Mar 21 01:52:45 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 1UITkK-0000Jj-He for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Mar 2013 01:52:44 +0100 Original-Received: from localhost ([::1]:48516 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UITjx-000878-Ak for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Mar 2013 20:52:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UITjs-00086q-JP for bug-gnu-emacs@gnu.org; Wed, 20 Mar 2013 20:52:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UITjr-0007GF-Cn for bug-gnu-emacs@gnu.org; Wed, 20 Mar 2013 20:52:16 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34096) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UITjr-0007GB-9n for bug-gnu-emacs@gnu.org; Wed, 20 Mar 2013 20:52:15 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UITla-00028E-Co for bug-gnu-emacs@gnu.org; Wed, 20 Mar 2013 20:54: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: Thu, 21 Mar 2013 00:54: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.13638271898130 (code B ref 14013); Thu, 21 Mar 2013 00:54:02 +0000 Original-Received: (at 14013) by debbugs.gnu.org; 21 Mar 2013 00:53:09 +0000 Original-Received: from localhost ([127.0.0.1]:38205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UITki-000275-QJ for submit@debbugs.gnu.org; Wed, 20 Mar 2013 20:53:09 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:34572 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UITke-00026v-P7 for 14013@debbugs.gnu.org; Wed, 20 Mar 2013 20:53:06 -0400 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 6FDFE258B9E91C; Wed, 20 Mar 2013 17:51:15 -0700 (PDT) In-Reply-To: <87d2ut4mji.fsf@web.de> (Michael Heerdegen's message of "Thu, 21 Mar 2013 01:35:45 +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:72760 Archived-At: >> .* matches a whole line. We can't hide from Isearch the fact >> that lines in Dired contain more details besides filenames. > > What about doing this (unrelated parts stripped, just as an example): > > (defun dired-isearch-filter-filenames (beg end) > (let ((beg (min beg end)) > (end (max beg end))) > (and (get-text-property beg 'dired-filename) > (or (eq (char-after end) ?\n) > (get-text-property end 'dired-filename))))) This doesn't work when searching for the regexp .+ .+ matches nothing but should match the same text as .* >> However, you can hide these details and leave only filenames >> by using `dired-hide-details-mode' or typing `('. Then .* >> will match only visible filenames. > > Surprisingly that doesn't work. Even with search-invisible nil I get > exactly the same matches, i.e., also the invisible text is being > matched. What did I miss? I meant that with `dired-hide-details-mode' at least you don't see invisible text that Isearch matches outside filenames. You see only filenames being matched :)