[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC] search functions which ignore case.
From: |
Yushi Oka |
Subject: |
Re: [RFC] search functions which ignore case. |
Date: |
Wed, 04 Apr 2012 22:43:35 +0900 |
Hi,
> > On Mon, 04 Jul 2011 15:06:33 +0900
> > "Shigio YAMAGUCHI" <address@hidden> wrote:
> >
> > I think,
> > It is better to refer both variable 'case-fold-search' and defcustom.
> > Because I would like to ignore case in 'isearch', but not in global.
> >
>
> I agree. It is more flexible.
> How about the following?
>
> (defcustom gtags-ignore-case 'follow-case-fold-search
> "*Controls whether or not ignore case in each search."
> :type '(choice (const :tag "Follows 'case-fold-search variable"
> follow-case-fold-search)
> (const :tag "Ignore case" t)
> (const :tag "Distinguish case" nil))
> :group 'gtags)
>
>
> [Usage of gtags-ignore-case]
>
> (setq gtags-ignore-case t) ; ignore case
>
> (setq gtags-ignore-case nil) ; distinguish case
>
> (setq gtags-ignore-case 'follow-case-fold-search) ; follow
> 'case-fold-search variable
Thank you.
It's a good idea.
Some people would like to distinguish case in 'isearch', but not in
'GLOBAL', that's no problem.
> The default is 'follow-case-fold-search.
>
> What do you think?
I think it is better that gtags-ignore-case's default value is 'nil'.
Because it is compatible for previous release (before 6.0) of GLOBAL.
Isn't it comfortable for many old users?
--
Yushi Oka <address@hidden>