bug-gnu-emacs
[Top][All Lists]
Advanced

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

regexp i-searches


From: Robert L. McDonald
Subject: regexp i-searches
Date: Fri, 29 Sep 2000 10:04:49 -0500

This report is about GNU emacs 20.7.1 on NT 4 (SP 4 and 5).

The documentation for regexp i-search says

   If you type <SPC> in incremental regexp search, it matches any
sequence of whitespace characters, including newlines.  If you want to
match just a space, type `C-q <SPC>'.

I find that newlines are included in some regexp i-searches are not in others. For example, if I have a file with

test
phrase

and I type   "<C-M-s> test<space>ph"  I get a failing regexp i-search.

If I type "<C-M-s> test[ \t\n\r]+ph" I get a failing regexp i-search.

The value of search-whitespace-regexp is set to "\\s-+".

Workaround: Regexp-isearch works correctly if I include the following in .emacs:

(custom-set-variables
 '(search-whitespace-regexp "[ \t\n\r]+"))

Based on responses on gnu.emacs.help, the problem may be related to the different definitions of newlines in dos and unix. I don't think unix users have this problem.

Thank you.

Bob

Finance Dept./Kellogg School
Northwestern University
2001 Sheridan Rd, Evanston IL 60208
address@hidden




reply via email to

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