From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: New feature idea: isearch with autocorrection Date: Mon, 27 Aug 2012 16:25:14 +0700 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1346059533 32057 80.91.229.3 (27 Aug 2012 09:25:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Aug 2012 09:25:33 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Tom Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 27 11:25:32 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 1T5vZc-0000gR-7v for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Aug 2012 11:25:32 +0200 Original-Received: from localhost ([::1]:33009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5vZa-00089F-3C for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Aug 2012 05:25:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5vZO-00088q-3S for help-gnu-emacs@gnu.org; Mon, 27 Aug 2012 05:25:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T5vZL-00007S-Nu for help-gnu-emacs@gnu.org; Mon, 27 Aug 2012 05:25:18 -0400 Original-Received: from mail-vc0-f169.google.com ([209.85.220.169]:51955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5vZL-00005v-Ha for help-gnu-emacs@gnu.org; Mon, 27 Aug 2012 05:25:15 -0400 Original-Received: by vcbfl10 with SMTP id fl10so4868990vcb.0 for ; Mon, 27 Aug 2012 02:25:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=29ffJNZ3n6Suu24L2I4JlZgOM1qF+UbFQC1176+emK4=; b=F5/ZldOJwvsvKkixowyklQiVlJkNyRtDZ5CxvoXr0SJsHRa5VNC5RFitHvEiZPv5Du p7gS/1HobqbLcZ3u4Z1vC9aiVGzfK7hCiTiTuzFkrxd41IC6zimDIc9A0V6QwU5xXXxH AF5Pu6+zs0LR79Isomb+jwb7CPT6pnPWQg0n78FgwLLXyVtRiHWRP8iyHhTJQ5Z17b7v Yz8Qd3B5pqpPafV9iPGDk5+7f5fAd/rtLYMr/7v94sjBAKaXNDjLLZwtJwFrqB2a1ChK cRlPVUnFOEj3urVE0MmA69Td5WBeqChd8qnB16uzI/mwGn/huruvriDeMXRo/RBiMf61 tYrA== Original-Received: by 10.52.26.137 with SMTP id l9mr9215151vdg.62.1346059514683; Mon, 27 Aug 2012 02:25:14 -0700 (PDT) Original-Received: by 10.220.167.195 with HTTP; Mon, 27 Aug 2012 02:25:14 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: fbaO-_rq0XUsQsEowVoUwdrYSso X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.220.169 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:86541 Archived-At: On Sat, Aug 25, 2012 at 2:38 AM, Tom wrote: > The asker wants isearch to ignore the nonmatching character if > a later character can be used for successful matching. > > What do you think? It sounds useful, not having to delete the > problematic part, but simply typing the correct characters. It sounds useful only until you actually try something that works that way. Then you discover that, whenever you make a typo, your fingers subconsciously press Backspace and correct the typo before your brain even gets to realize that you =93don=92t have=94 to erase the wrong character. With the proposed change, the sequence of events becomes: 1. You type the prefix. The editor finds it. 2. You make a typo. The editor does not find the new string and ignores the last character. 3. You press Backspace. Since your typo character was ignored, you end up erasing the last character that was correct. 4. You enter the character that would correct the typo, and probably a few more. For the purposes of isearch, it is added to the prefix without its last character (which you involuntarily erased at step 3). Most probably, the editor does not find the new string and drops your correction character and whatever subsequent characters you enter. Maybe even beeps at you, too. 5. You say =93oh s#!t=94 and have to look at and think about your current search string, to resume typing from the correct character.