From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Isearch in dired Date: Wed, 12 Nov 2008 10:08:27 -0500 Message-ID: <87wsf97zis.fsf@cyd.mit.edu> References: <87zlk90yjb.fsf@cyd.mit.edu> <87ljvssrkb.fsf@jurta.org> <87tzadzxdi.fsf@cyd.mit.edu> <87vdut9y4r.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226502597 6654 80.91.229.12 (12 Nov 2008 15:09:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Nov 2008 15:09:57 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 12 16:10:58 2008 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 1L0HMs-00027C-6s for ged-emacs-devel@m.gmane.org; Wed, 12 Nov 2008 16:10:54 +0100 Original-Received: from localhost ([127.0.0.1]:33990 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0HLg-0007Xx-U9 for ged-emacs-devel@m.gmane.org; Wed, 12 Nov 2008 10:09:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L0HKs-0007JT-6W for emacs-devel@gnu.org; Wed, 12 Nov 2008 10:08:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L0HKk-0007Gh-T1 for emacs-devel@gnu.org; Wed, 12 Nov 2008 10:08:49 -0500 Original-Received: from [199.232.76.173] (port=35396 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0HKk-0007Gb-Mq for emacs-devel@gnu.org; Wed, 12 Nov 2008 10:08:42 -0500 Original-Received: from cyd.mit.edu ([18.115.2.24]:57136) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L0HKV-0002CT-T1; Wed, 12 Nov 2008 10:08:30 -0500 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id D26EE57E197; Wed, 12 Nov 2008 10:08:27 -0500 (EST) In-Reply-To: <87vdut9y4r.fsf@jurta.org> (Juri Linkov's message of "Wed, 12 Nov 2008 09:55:35 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:105600 Archived-At: Juri Linkov writes: >> As for doing a filename search based on the current column, that is a >> tad more reasonable, but still suffers from the "unexplained behavior" >> problem. There is simply no visual clue for the user that the "dwim >> behavior" is taking place, or what rules govern it, so it will seem like >> Emacs is behaving erratically. > > Fortunately, there is now a visual clue for the user in the Isearch prompt, This tells the user that a special behavior of Isearch is occurring, but not *why* it occurs (i.e., because point is in the filenames column), nor how to disable it. >> Note, also, that upon entering the Dired buffer, point is placed in >> the filename column by default, so if the user attempts to search for >> dates with C-s, the search fails by default! > > Searching for dates with C-s from the first file will miss the date of the > first file because it is located before the filename. So to search for > dates is better to start from the beginning of the dired buffer or after > moving point to the date of the first file where Isearch is not filename > only (we could later implement dwim-search for the date column only!). This argument banks on the user doing something to disable the special behavior, so that he is not confused. If the user happens not to move point before doing C-s, the confusion occurs. These problems can be circumvented by implementing a separate dwim search keybinding (maybe something in the M-s prefix, such as M-s C-s).