Hi,
> Hi,
> 
> On Mon, 04 Jul 2011 15:06:33 +0900
> "Shigio YAMAGUCHI" <[email protected]> wrote:
> 
>  〆 ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
> | Hi all,
> | I would like to make search functions which ignore case available in 
> gtags.el.
> | 
> | How about having each gtags-find-XXX command (gtags-find-tag, 
> gtags-find-file,...)
> | to refer variable 'case-fold-search'?
> | Though it is a INCOMPATIBLE CHANGE, this is suitable for the long.
> | Because this follows the convention of Emacs.
> | 
> | What do you think?
> 
> 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

The default is 'follow-case-fold-search.

What do you think?

Shigio
--
Shigio YAMAGUCHI <[email protected]>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3

_______________________________________________
Bug-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-global

Reply via email to