From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Newsgroups: gmane.emacs.help Subject: Re: New feature idea: isearch with autocorrection Date: Sat, 25 Aug 2012 19:08:04 +0000 (UTC) Message-ID: References: <86bohylvb1.fsf@hotmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1345921704 28054 80.91.229.3 (25 Aug 2012 19:08:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Aug 2012 19:08:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 25 21:08:25 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T5LiZ-0001Up-IT for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Aug 2012 21:08:23 +0200 Original-Received: from localhost ([::1]:47660 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5LiX-0006KO-Do for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Aug 2012 15:08:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46748) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5LiR-0006KJ-V0 for help-gnu-emacs@gnu.org; Sat, 25 Aug 2012 15:08:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T5LiQ-0006RC-Vx for help-gnu-emacs@gnu.org; Sat, 25 Aug 2012 15:08:15 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:52238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5LiQ-0006R6-PM for help-gnu-emacs@gnu.org; Sat, 25 Aug 2012 15:08:14 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T5LiQ-0001O5-D4 for help-gnu-emacs@gnu.org; Sat, 25 Aug 2012 21:08:14 +0200 Original-Received: from 188-143-85-231.pool.digikabel.hu ([188.143.85.231]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 25 Aug 2012 21:08:14 +0200 Original-Received: from adatgyujto by 188-143-85-231.pool.digikabel.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 25 Aug 2012 21:08:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 188.143.85.231 (Opera/9.80 (Windows NT 6.1; U; en) Presto/2.10.289 Version/12.01) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86509 Archived-At: Tom gmail.com> writes: > > I tried a few searches and it seems useful. Why is the default > implementation leaves bad characters in the search string at all? It is not > very useful, because then you must delete them manually. > It occured to me it is useful for overwrapped search when you hit the end of the file, but then you can press C-s to search for the failed string from the beginning. On the other hand the above advice is quite useful when you only want to search forward in the file without overwrapping, because in this case collecting the nonmatching characters in the search string is useless, because you have to delete them to fix the search string. So the best solution would be to somehow combine the two. Collect the failed chars as usual to allow for quick overwrapping search, but at the same time show those matches until the end of file which can be found by ignoring the nonmatching chars in the search string, so the user does not have to delete them manually to correct the search.