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#6362: Emacs command `dired-isearch-filenames-regexp' cause CPU usage 100% Date: Mon, 07 Jun 2010 21:05:09 +0300 Organization: JURTA Message-ID: <87k4qb82s3.fsf@mail.jurta.org> References: <87d3w4lc3r.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1275937111 8169 80.91.229.12 (7 Jun 2010 18:58:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Jun 2010 18:58:31 +0000 (UTC) Cc: 6362@debbugs.gnu.org To: Li Zhai Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 07 20:58:28 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OLhWf-0000HD-JP for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Jun 2010 20:58:21 +0200 Original-Received: from localhost ([127.0.0.1]:52961 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLhWe-0001W2-TW for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Jun 2010 14:58:21 -0400 Original-Received: from [140.186.70.92] (port=42055 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLhWT-0001Rw-P2 for bug-gnu-emacs@gnu.org; Mon, 07 Jun 2010 14:58:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OLhWO-0004Iw-NV for bug-gnu-emacs@gnu.org; Mon, 07 Jun 2010 14:58:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44638) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLhWO-0004Ip-L3 for bug-gnu-emacs@gnu.org; Mon, 07 Jun 2010 14:58:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OLhRW-0001ys-7b; Mon, 07 Jun 2010 14:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Jun 2010 18:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6362 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6362-submit@debbugs.gnu.org id=B6362.12759367347590 (code B ref 6362); Mon, 07 Jun 2010 18:53:02 +0000 Original-Received: (at 6362) by debbugs.gnu.org; 7 Jun 2010 18:52:14 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLhQj-0001yJ-I0 for submit@debbugs.gnu.org; Mon, 07 Jun 2010 14:52:13 -0400 Original-Received: from smtp-out1.starman.ee ([85.253.0.3] helo=mx1.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLhQh-0001y6-8p for 6362@debbugs.gnu.org; Mon, 07 Jun 2010 14:52:12 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.35.211.cable.starman.ee [82.131.35.211]) by mx1.starman.ee (Postfix) with ESMTP id D5CCB3F4194; Mon, 7 Jun 2010 21:52:03 +0300 (EEST) In-Reply-To: (Li Zhai's message of "Sun, 6 Jun 2010 20:30:42 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 07 Jun 2010 14:53:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37586 Archived-At: > Yes, I expect that query-replace will rename file names start with > `f'. As the search process just matched the file names, it is a simple > thought that `^' means the beginning of the file name. > > If we could add some special syntax properties to the white-space > before the file name, it is possible to match the file names start > with `f'. For instance, type : > > dired-isearch-filenames-regexp RET \sxf RET > > At here, the `x' means the special syntax class. `\sx' matches a character, but it would be better to match the empty string like `^' does. One variant is to narrow the dired buffer so the beginning of a line will be the beginning of a file name. Unfortunately, it's impossible to narrow to columns, only to lines. Another variant is to add a new predicate function in regex.c that will specify where ^ should match, so dired will set it to a function that returns non-nil at the beginning of a file name. -- Juri Linkov http://www.jurta.org/emacs/