From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Isearch in dired Date: Sat, 08 Nov 2008 19:08:02 +0200 Organization: JURTA Message-ID: <878wrujgct.fsf@jurta.org> References: <20081108121929.GA3616@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226164222 30286 80.91.229.12 (8 Nov 2008 17:10:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Nov 2008 17:10:22 +0000 (UTC) Cc: "Richard M. Stallman" , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 08 18:11:24 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KyrLH-00034v-FN for ged-emacs-devel@m.gmane.org; Sat, 08 Nov 2008 18:11:23 +0100 Original-Received: from localhost ([127.0.0.1]:56333 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KyrKA-0000kh-0i for ged-emacs-devel@m.gmane.org; Sat, 08 Nov 2008 12:10:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KyrK4-0000jq-Rx for emacs-devel@gnu.org; Sat, 08 Nov 2008 12:10:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KyrK4-0000je-6J for emacs-devel@gnu.org; Sat, 08 Nov 2008 12:10:08 -0500 Original-Received: from [199.232.76.173] (port=35858 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KyrK3-0000jU-PA for emacs-devel@gnu.org; Sat, 08 Nov 2008 12:10:07 -0500 Original-Received: from relay01.kiev.sovam.com ([62.64.120.200]:3952) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KyrK2-00084d-7o; Sat, 08 Nov 2008 12:10:06 -0500 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay01.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1KyrK0-000NCA-JC; Sat, 08 Nov 2008 19:10:04 +0200 In-Reply-To: <20081108121929.GA3616@muc.de> (Alan Mackenzie's message of "Sat, 8 Nov 2008 12:19:29 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) X-Scanner-Signature: e35cef5ed21d82303c208435479e4a86 X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Trusted X-SpamTest-Info: Profiles 5635 [Nov 08 2008] X-SpamTest-Info: {received from trusted relay: common white list} X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Method: white ip list X-SpamTest-Rate: 10 X-SpamTest-Status: Trusted X-SpamTest-Status-Extended: trusted X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0278], KAS30/Release X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.8-5.1 (or MacOS X 10.2-10.3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:105467 Archived-At: > 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/