From: Juri Linkov <juri@jurta.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Chong Yidong <cyd@stupidchicken.com>, emacs-devel@gnu.org
Subject: Re: Strange behavior of word isearch
Date: Sun, 09 Nov 2008 19:45:49 +0200 [thread overview]
Message-ID: <87bpwovnvy.fsf@jurta.org> (raw)
In-Reply-To: <jwv8wrt8wb5.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sat, 08 Nov 2008 21:35:43 -0500")
> Looks good. Can people try it out and see if they are surprised?
>
> I know a case where it won't work as nicely as just SPC for me:
> I often use C-w to fill the search, but I often don't start at the right
> position, so I type in the beginning of the word I want, then maybe hit
> C-s a few times to jump to the right occurrence (when it's easier than
> to keep on typing), then C-w. But with your change, the C-s will skip
> the right occurrence.
For such a case it's more easy to start isearch with C-s, compose a
complete search string with moving point to the right occurrence using
C-w and C-s, and finally toggle the word search mode with `M-s w'.
Many applications have a search dialog box with a "Match Whole Word Only"
checkbox. `M-s w' would be like selecting such an option to narrow the
search space to word boundaries.
--
Juri Linkov
http://www.jurta.org/emacs/
next prev parent reply other threads:[~2008-11-09 17:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-23 16:58 Strange behavior of word isearch Chong Yidong
2008-09-25 3:46 ` Chong Yidong
2008-09-25 9:11 ` martin rudalics
2008-09-25 14:34 ` Chong Yidong
2008-09-25 15:17 ` martin rudalics
2008-09-25 16:41 ` Chong Yidong
2008-09-25 17:10 ` Chong Yidong
2008-11-08 22:59 ` Juri Linkov
2008-11-09 2:35 ` Stefan Monnier
2008-11-09 17:45 ` Juri Linkov [this message]
2008-09-25 13:35 ` Stefan Monnier
2008-09-25 15:34 ` Juri Linkov
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bpwovnvy.fsf@jurta.org \
--to=juri@jurta.org \
--cc=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).