all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yuri Khan <yuri.v.khan@gmail.com>
To: Tom <adatgyujto@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: New feature idea: isearch with autocorrection
Date: Mon, 27 Aug 2012 16:25:14 +0700	[thread overview]
Message-ID: <CAP_d_8WysygM=Q1y4zj+DKbovvpqFTUFMqKjEjNdxr9d1sA9sg@mail.gmail.com> (raw)
In-Reply-To: <loom.20120824T213049-485@post.gmane.org>

On Sat, Aug 25, 2012 at 2:38 AM, Tom <adatgyujto@gmail.com> 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 “don’t have” 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 “oh s#!t” and have to look at and think about your current
search string, to resume typing from the correct character.



  reply	other threads:[~2012-08-27  9:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-24 19:38 New feature idea: isearch with autocorrection Tom
2012-08-27  9:25 ` Yuri Khan [this message]
2012-08-27 13:07   ` Tom
2012-08-27 13:18     ` Filipp Gunbin
2012-08-27 13:23       ` Tom
2012-08-27 16:45         ` Ludwig, Mark
2012-08-27 18:13           ` Drew Adams
     [not found] ` <mailman.7643.1346059524.855.help-gnu-emacs@gnu.org>
2012-08-29 17:02   ` Bug Dout
2012-08-29 18:50     ` Vagn Johansen
     [not found] <mailman.7531.1345837128.855.help-gnu-emacs@gnu.org>
2012-08-25 17:45 ` Vagn Johansen
2012-08-25 18:55   ` Tom
2012-08-25 19:08     ` Tom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAP_d_8WysygM=Q1y4zj+DKbovvpqFTUFMqKjEjNdxr9d1sA9sg@mail.gmail.com' \
    --to=yuri.v.khan@gmail.com \
    --cc=adatgyujto@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.