unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: don provan <dprovan@comcast.net>
Subject: Re: emacs 22 - regular-expression isearch on spaces extremely lenient
Date: Sat, 29 Apr 2006 08:16:42 -0700	[thread overview]
Message-ID: <u7j58xvhh.fsf@comcast.net> (raw)
In-Reply-To: mailman.1118.1146321681.9609.help-gnu-emacs@gnu.org

"Drew Adams" <drew.adams@oracle.com> writes:

> (setq search-whitespace-regexp nil) will turn this off. When this is nil,
> each space you type matches literally, against one space.

Thanks! This always annoyed me, but I've never seen a mention of the
control variable to turn it off.

>  If non-nil, regular expression to match a sequence of whitespace chars.
>  This applies to regular expression incremental search.

I think the biggest problem with it is the inconsistency between
incremental search and elisp regexp searches. Literally just yesterday
I had to debug a problem caused because my practice regexp at the
command line did what I wanted with a space, but when I used the same
string in a functional search, it didn't. I've seen the documentation
for this feature, but wherever it was, it wasn't clear to me until now
that it was specific to incremental regexp searches rather than a
general feature of all regexp searches.

-don

       reply	other threads:[~2006-04-29 15:16 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1118.1146321681.9609.help-gnu-emacs@gnu.org>
2006-04-29 15:16 ` don provan [this message]
     [not found] <2cd46e7f0604281353l38f7672gd3cfe0c64fdf0cb4@mail.gmail.com>
2006-04-28 20:56 ` emacs 22 - regular-expression isearch on spaces extremely lenient Ken Manheimer
2006-04-29 14:41   ` Drew Adams
2006-04-29 17:23     ` Eric Hanchrow
2006-05-01 14:51       ` Kevin Rodgers
2006-05-02  2:04         ` Richard Stallman
2006-05-01 18:04     ` ken manheimer
     [not found]     ` <mailman.1189.1146507010.9609.help-gnu-emacs@gnu.org>
2006-05-30  5:17       ` David Combs
2006-05-30  6:21         ` Tim X
2006-05-30  8:31         ` David Kastrup
     [not found] ` <mailman.1109.1146290553.9609.help-gnu-emacs@gnu.org>
2006-04-29  7:47   ` 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

  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=u7j58xvhh.fsf@comcast.net \
    --to=dprovan@comcast.net \
    /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.
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).