emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: emacs 22 - regular-expression isearch on spaces extremely lenient


From: Drew Adams
Subject: RE: emacs 22 - regular-expression isearch on spaces extremely lenient
Date: Sat, 29 Apr 2006 09:14:03 -0700

Fwding to emacs-devel. They are the ones who can change this behavior or
perhaps make the user option move visible somehow.

    To: address@hidden
    > (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 via email to

[Prev in Thread] Current Thread [Next in Thread]