[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Interpretation of a space in regexp isearch?
From: |
Chong Yidong |
Subject: |
Re: Interpretation of a space in regexp isearch? |
Date: |
Thu, 30 Aug 2012 16:19:10 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
Juri Linkov <address@hidden> writes:
> It would be better to reimplement it in isearch exactly the same way
> as `isearch-word' is implemented because these two are similar
> features.
>
> A new `isearch-whitespace' toggled by `M-s SPC' could construct a regexp
> like in `word-search-regexp' and search it with `re-search-forward' in
> `isearch-search-fun-default'. This will provide flexibility to solve
> related problems.
I think this is a good idea.
I'd like the whitespace munging to be enabled for C-s, unless the user
disables it by customizing `search-whitespace-regexp' (or whatever
variable we decide on). So `isearch-forward' itself should pass the
relevant flag to `isearch-mode'.
Instead of adding an `isearch-whitespace' flag, I think this is best
implemented as a third possible value for `isearch-word', say the symbol
`match-any-whitespace'.
- Re: Interpretation of a space in regexp isearch?, (continued)
- Re: Interpretation of a space in regexp isearch?, Johan Bockgård, 2012/08/27
- Re: Interpretation of a space in regexp isearch?, Juri Linkov, 2012/08/28
- Re: Interpretation of a space in regexp isearch?, Stefan Monnier, 2012/08/28
- Re: Interpretation of a space in regexp isearch?, Juri Linkov, 2012/08/28
- RE: Interpretation of a space in regexp isearch?, Drew Adams, 2012/08/28
- Re: Interpretation of a space in regexp isearch?, Juri Linkov, 2012/08/29
- RE: Interpretation of a space in regexp isearch?, Drew Adams, 2012/08/29
- Re: Interpretation of a space in regexp isearch?, Juri Linkov, 2012/08/29
- Re: Interpretation of a space in regexp isearch?,
Chong Yidong <=
- Re: Interpretation of a space in regexp isearch?, Chong Yidong, 2012/08/30
- Re: Interpretation of a space in regexp isearch?, Juri Linkov, 2012/08/30
- Re: Interpretation of a space in regexp isearch?, Stefan Monnier, 2012/08/30
- Re: Interpretation of a space in regexp isearch?, Juri Linkov, 2012/08/30
- Re: Interpretation of a space in regexp isearch?, Juri Linkov, 2012/08/30
- Re: Interpretation of a space in regexp isearch?, Chong Yidong, 2012/08/31
- Re: Interpretation of a space in regexp isearch?, Juri Linkov, 2012/08/31
- Re: Interpretation of a space in regexp isearch?, Chong Yidong, 2012/08/31
- Re: Interpretation of a space in regexp isearch?, Juri Linkov, 2012/08/31
- Re: Interpretation of a space in regexp isearch?, Chong Yidong, 2012/08/31