[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Calling occur from within isearch
From: |
Juri Linkov |
Subject: |
Re: Calling occur from within isearch |
Date: |
Wed, 05 Dec 2007 00:43:23 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) |
>> 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)
I can't comment why isearch functions use `(eq case-fold-search t)',
but I think other interactive search-related commands like occur
should use the same condition, whatever it is.
> 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))
What code in occur for this case do you have in mind?
--
Juri Linkov
http://www.jurta.org/emacs/