]> git.eshelyaron.com Git - emacs.git/commitdiff
*** empty log message ***
authorRichard M. Stallman <rms@gnu.org>
Fri, 19 Nov 2004 20:07:39 +0000 (20:07 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 19 Nov 2004 20:07:39 +0000 (20:07 +0000)
etc/NEWS
lisp/ChangeLog
lispref/ChangeLog
src/ChangeLog

index 0c412e115bc0db4d2d2b12a39e19a8a82fd248cc..aa8cbe932a3d28afd3db2a6e8b5ec4c0cbb22b5b 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -98,6 +98,15 @@ types any more.  Add -DUSE_LISP_UNION_TYPE if you want union types.
 \f
 * Changes in Emacs 21.4
 
++++
+** The new variable search-whitespace-regexp controls how to search
+for spaces in a regular expression.  If it is non-nil, it should be a
+regular expression, and any series of spaces stands for that regular
+expression.  If it is nil, spaces stand for themselves.
+
+Spaces inside of constructs such as [..] and *, +, ? are never
+replaced with search-whitespace-regexp.
+
 ** line-move-ignore-invisible now defaults to t.
 
 ** In Outline mode, hide-body no longer hides lines at the top
index 060232490c2e930a72f29f3729e824dc1b16c2f0..652ab2c3b3bf24fb3de70d88233d171057f6942c 100644 (file)
@@ -1,3 +1,7 @@
+2004-11-19  Richard M. Stallman  <rms@gnu.org>
+
+       * info.el (Info-search): Use search-whitespace-regexp.
+
 2004-11-19  Thien-Thi Nguyen  <ttn@gnu.org>
 
        * vc-rcs.el (vc-rcs-parse): New function.
index 319cb87a0972f9102b92a30eb20df6f45d18c16a..295b83175346ca067ca3f41f5a050eb6312d76e8 100644 (file)
@@ -1,3 +1,7 @@
+2004-11-19  Richard M. Stallman  <rms@gnu.org>
+
+       * searching.texi (Regexp Search): Add search-whitespace-regexp.
+
 2004-11-19  CHENG Gao  <chenggao@gmail.com>  (tiny change)
 
        * tips.texi (Coding Conventions): Fix typo.
index dda9d1cc972f996b62f3515684116dbedd510bf3..395872b1e4454deb0e52651bdaf8fafca0474d65 100644 (file)
@@ -5,6 +5,10 @@
        (compile_pattern_1): Call re_set_whitespace_regexp with it.
        (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
        is non-nil.
+       (struct regexp_cache): New element whitespace_regexp.
+       (syms_of_search): Initialize whitespace_regexp elements.
+       (compile_pattern): Compare whitespace_regexp elements.
+       (compile_pattern_1): Set whitespace_regexp elements.
 
        * regex.c (regex_compile): Substitute whitespace_regexp
        for spaces, if it is nonzero.