[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Calling occur from within isearch
From: |
Johan Bockgård |
Subject: |
Re: Calling occur from within isearch |
Date: |
Tue, 04 Dec 2007 02:24:39 +0100 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) |
Juri Linkov <address@hidden> writes:
> What is ugly is that the distinction between `yes' and `t' is
> mentioned only in the comments of `isearch-case-fold-search' as if
> they were "unofficial" values:
I think they are. isearch-case-fold-search is an internal detail of
isearch...
> If these values are valid, then perhaps they should be documented in
> the docstrings of `isearch-case-fold-search'
...it doesn't even *have* a doc string.
> saying that the distinction between `yes' and `t' is valid for some
> searching interactive commands.
I can't see how this distinction is at all useful for the user.
`search-uppercase' already provides a (the) way to decide whether "mixed
case in the search string [should be] ignored":
(if (and case-fold-search search-upper-case)
(isearch-no-upper-case-p regexp t)
case-fold-search)
In the case of occur from within isearch, the current value of
isearch-case-fold-search will make searching find the right matches--if
occur does *not* look at the case of the input again
(let ((case-fold-search isearch-case-fold-search)
(search-upper-case nil))
(occur regexp nlines))
--
Johan Bockgård