[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Isearch in dired
From: |
Juri Linkov |
Subject: |
Re: Isearch in dired |
Date: |
Sat, 08 Nov 2008 19:08:02 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) |
> This doesn't have to be a special dired thing. Surely it should be a
> major mode dependent hook:
>
> (defvar isearch-in-valid-region-p nil
> "If non-nil, a function which returns non-nil if the current isearch
> match is acceptable. It is given two parameters, the beginning and end
> of the match.")
except that such a hook already exists. Its name is `isearch-success-function'.
> There are already several toggle keys in isearch-mode: M-r (toggle
> regexp), M-c (toggle case sensitivity), ..... So, how about C-M-z
> (toggle validation funtion)?
Currently in dired the toggle key is the same as the key that activates
filename isearch, i.e. `M-s f'.
> It's not that brilliant - in fact, it's pretty bad, but it doesn't
> shadow a useful function in the Emacs core (is C-M-z bound anywhere at
> all?) and it's no worse than C-M-w. ;-(
`C-M-z' looks like a good more general alternative.
--
Juri Linkov
http://www.jurta.org/emacs/