unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: Interpretation of a space in regexp isearch?
@ 2012-08-15  4:40 Dmitry Gutov
  2012-08-15  5:27 ` Bastien
  0 siblings, 1 reply; 56+ messages in thread
From: Dmitry Gutov @ 2012-08-15  4:40 UTC (permalink / raw)
  To: cyd; +Cc: bzg, emacs-devel

Chong Yidong <cyd@gnu.org> writes:

 > Bastien <bzg@gnu.org> writes:
 >
 >> Davis Herring <herring@lanl.gov> writes:
 >>
 >>> It's a feature, but I don't remember how to change it at the moment.
 >>> `search-spaces-regexp' is almost it.
 >>
 >> Yep -- it's =CC=80search-whitespace-regexp'.
 >
 > FWIW, I've long been of the opinion that this feature is exactly
 > backward.  The `search-whitespace-regexp' whitespace matching feature
 > should apply to ordinary incremental search, and it should *not* apply
 > to regexp incremental search.

I think that would make more sense, too.



^ permalink raw reply	[flat|nested] 56+ messages in thread
* Re: Interpretation of a space in regexp isearch?
@ 2012-08-14 23:45 Dmitry Gutov
  0 siblings, 0 replies; 56+ messages in thread
From: Dmitry Gutov @ 2012-08-14 23:45 UTC (permalink / raw)
  To: bzg; +Cc: emacs-devel

Bastien <bzg@gnu.org> writes:
 > I just found out that
 >
 >   C-u C-s [a-z]\. [A-Z]
 >
 > matches more than one space character.
 >
 > Is this a bug?
 >
 > How can I search only one space character?

The docstring for `isearch-forward-regexp' says:

   In regexp incremental searches, a space or spaces normally matches any
   whitespace (the variable `search-whitespace-regexp' controls precisely
   what that means). If you want to search for a literal space and
   nothing else, enter C-q SPC.



^ permalink raw reply	[flat|nested] 56+ messages in thread
* Interpretation of a space in regexp isearch?
@ 2012-08-14 23:03 Bastien
  2012-08-14 23:45 ` Davis Herring
  0 siblings, 1 reply; 56+ messages in thread
From: Bastien @ 2012-08-14 23:03 UTC (permalink / raw)
  To: emacs-devel

Hi,

I just found out that

  C-u C-s [a-z]\. [A-Z] 

matches more than one space character.

Is this a bug?

How can I search only one space character?

Thanks!

-- 
 Bastien




^ permalink raw reply	[flat|nested] 56+ messages in thread

end of thread, other threads:[~2012-09-01 16:02 UTC | newest]

Thread overview: 56+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-15  4:40 Interpretation of a space in regexp isearch? Dmitry Gutov
2012-08-15  5:27 ` Bastien
2012-08-15  9:11   ` Dani Moncayo
2012-08-15  9:13     ` Dani Moncayo
2012-08-15  9:19     ` Dani Moncayo
2012-08-15 13:59     ` Drew Adams
2012-08-15 14:31       ` Davis Herring
2012-08-15 16:43         ` Drew Adams
2012-08-15 17:54           ` Davis Herring
2012-08-15 22:53       ` Dmitry Gutov
2012-08-15 23:21         ` Drew Adams
2012-08-16  2:25           ` Dmitry Gutov
2012-08-16  5:37             ` Drew Adams
2012-08-26  4:06     ` Chong Yidong
2012-08-26  6:59       ` Bastien
2012-08-26 15:19       ` Dani Moncayo
2012-08-26 17:31         ` Dani Moncayo
2012-08-28  8:28           ` Juri Linkov
2012-08-28  9:07             ` Dani Moncayo
2012-08-28 23:01               ` Juri Linkov
2012-08-27 18:34       ` Johan Bockgård
2012-08-28  8:30         ` Juri Linkov
2012-08-28 12:53           ` Stefan Monnier
2012-08-28 22:54             ` Juri Linkov
2012-08-28 23:52               ` Drew Adams
2012-08-29  8:38                 ` Juri Linkov
2012-08-29 16:01                   ` Drew Adams
2012-08-29 23:49                     ` Juri Linkov
2012-08-30  8:19               ` Chong Yidong
2012-08-30  8:31                 ` Chong Yidong
2012-08-30  8:54                   ` Juri Linkov
2012-08-30 14:47                     ` Stefan Monnier
2012-08-31  0:02                       ` Juri Linkov
2012-08-31  0:07                   ` Juri Linkov
2012-08-31  5:40                     ` Chong Yidong
2012-08-31  9:31                       ` Juri Linkov
2012-08-31 14:55                         ` Chong Yidong
2012-09-01  0:47                           ` Juri Linkov
2012-09-01  3:15                             ` Chong Yidong
2012-09-01 11:50                               ` Juri Linkov
2012-09-01 16:02                                 ` Chong Yidong
2012-08-29  6:46           ` Chong Yidong
2012-08-29  8:28             ` Juri Linkov
2012-08-29 13:55               ` Stefan Monnier
2012-08-29 15:11                 ` Dani Moncayo
2012-08-29 23:51                 ` Juri Linkov
2012-08-28  8:27       ` Juri Linkov
2012-08-29  6:59         ` Chong Yidong
2012-08-29  8:34           ` Juri Linkov
2012-08-30  9:01         ` Chong Yidong
2012-08-30  9:18           ` Juri Linkov
  -- strict thread matches above, loose matches on Subject: below --
2012-08-14 23:45 Dmitry Gutov
2012-08-14 23:03 Bastien
2012-08-14 23:45 ` Davis Herring
2012-08-14 23:53   ` Bastien
2012-08-15  3:42     ` Chong Yidong

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).