all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: Re: isearch magic space
Date: Tue, 15 Mar 2005 15:09:55 +0200	[thread overview]
Message-ID: <87hdjd3uoz.fsf@jurta.org> (raw)
In-Reply-To: <1491.220.255.169.59.1110885253.squirrel@220.255.169.59> (Chong Yidong's message of "Tue, 15 Mar 2005 06:14:13 -0500 (EST)")

"Chong Yidong" <cyd@stupidchicken.com> writes:
> Some time ago, I proposed providing a magic space for ordinary isearch. 
> The response was generally favorable, but my papers were not in order, so
> the patch could not be applied.  My copyright assignment is settled now;
> can the patch be applied, or is it too late?

I like the idea of using a space to match any whitespace in plain
non-regexp isearch.  However, it should be nil by default to preserve
the default behavior for users who don't expect such a change.
Also there should be an easy way to put a literal space into the
search string.  In regexp isearch this can be done with C-q SPC.

One solution is to allow `search-whitespace-regexp' to be a list of
regexps and a new key could rotate this list and search will use
the first element.  I noticed that in most cases as the whitespace
regexp "\\W+" is more useful than "\\s-+".  So a new key could use
the default values '(nil "\\s-+" "\\W+") and switch between them.

-- 
Juri Linkov
http://www.jurta.org/emacs/

  reply	other threads:[~2005-03-15 13:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-15 11:14 isearch magic space Chong Yidong
2005-03-15 13:09 ` Juri Linkov [this message]
2005-03-15 15:00   ` Chong Yidong
2005-03-15 15:05     ` Chong Yidong
2005-03-18  3:18 ` Miles Bader

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=87hdjd3uoz.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@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.