[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: |
Wed, 29 Aug 2012 14:59:19 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
Juri Linkov <address@hidden> writes:
> A better approach is to have two separate user options
> for ordinary and regexp search whitespace like:
>
> (defcustom search-whitespace-regexp "\\s-+"
> ...
>
> (defcustom re-search-whitespace-regexp search-whitespace-regexp
> ...
I'm OK with having two options, but the trouble is finding the right
names: they need to have the right prefix. I don't like
re-search-whitespace-regexp, because the name seems to indicate that it
affects re-search-forward the Lisp function, rather than the incremental
regexp search user-level feature. (Note that search-whitespace-regexp
is similarly poorly named).
Maybe isearch-spaces-regexp and isearch-regexp-spaces-regexp, with
search-whitespace-regexp an obsolete alias for the latter? Though
isearch-regexp-spaces-regexp sounds a bit weird.
> Also I'm concerned about `re-search-forward' being slower than
> `search-forward' for plain strings.
Someone mentioned that he had replaced C-s with isearch-forward-regexp
for a long time, without any ill effects. Let's revisit the speed issue
iff it actually bites in practice.
- Re: Interpretation of a space in regexp isearch?, (continued)
- Re: Interpretation of a space in regexp isearch?, Chong Yidong, 2012/08/29
- Re: Interpretation of a space in regexp isearch?, Juri Linkov, 2012/08/29
- Re: Interpretation of a space in regexp isearch?, Stefan Monnier, 2012/08/29
- Re: Interpretation of a space in regexp isearch?, Dani Moncayo, 2012/08/29
- Re: Interpretation of a space in regexp isearch?, Juri Linkov, 2012/08/29
- Re: Interpretation of a space in regexp isearch?, Juri Linkov, 2012/08/28
- Re: Interpretation of a space in regexp isearch?,
Chong Yidong <=
- Re: Interpretation of a space in regexp isearch?, Juri Linkov, 2012/08/29
- 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