--- Begin Message ---
Subject: |
Emacs command `dired-isearch-filenames-regexp' cause CPU usage 100% |
Date: |
Sun, 6 Jun 2010 11:36:00 +0800 |
Package: Emacs
Version: 23.2.1
I use the command `dired-isearch-filenames-regexp' to find some files
in a directory. I use the the anchor `^' to match the files start with
something. Emacs is suspended and the CPU usage is 100%.Here is a
transcript:
1. Open a directory in dired mode.
2. Input `M-x dired-isearch-filenames-regexp RET ^ f RET'
Emacs will suspend rather than match the file names start with `f'.
I'm using Windows XP, Emacs version 23.2.
Bye,
Li Zhai
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#6362: Emacs command `dired-isearch-filenames-regexp' cause CPU usage 100% |
Date: |
Fri, 09 Sep 2011 18:49:19 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) |
> BTW, there is another bug in query-replace lazy-highlighting in dired.
> Wdired sets `query-replace-skip-read-only' to replace only in
> file names, but during replacement all read-only matches are
> lazy-highlighted too. This can be fixed with this patch:
> [...]
> +(defun wdired-isearch-filter-read-only (beg end)
> + "Skip matches that have a read-only property."
> + (and (isearch-filter-visible beg end)
> + (not (text-property-not-all (min beg end) (max beg end)
> + 'read-only nil))))
I installed this old patch and closed this bug.
--- End Message ---