[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gtags.el: Completion while "Find files:"
From: |
polzin_spamprotect_ |
Subject: |
Re: gtags.el: Completion while "Find files:" |
Date: |
Sat, 17 Oct 2009 19:01:51 +0200 |
Good idea, but the change of behavior should also apply to the found
files, not only to the completion list, right?
So,
(gtags-goto-tag tagname "P")
in gtags-find-file could be changed into
(gtags-goto-tag (concat "/" tagname) "P")
?
Regards,
Tobias
2009/10/16 Shigio YAMAGUCHI <address@hidden>:
> Hi,
> It's very convenient!
>
> But it seems that it generates too many candidates.
> How about changing like follows?
>
> (call-process "global" nil t nil option string)
> |
> v
> (call-process "global" nil t nil option (concat "/" string))
>
> "global -P /ab" matches to:
>
> abc/efg.c
> ==
> xyz/abx.c
> ==
>
> but doesn't match to:
>
> xab/yyy.c
> ==
> xxx/yab.c
> ==
>
> What do you think?
>
>> Hi,
>>
>> thanks for gnu global!
>>
>> gtags.el enables completion on "tab" only for tag and symbols. I am so
>> used to completion, that I find myself often removing a "tab" from the
>> "Find files:" prompt :-).
>>
>> So, I patched "Find files:" to enable completion. I find it useful,
>> and it makes the emacs user interface more consistent.
> --
> Shigio YAMAGUCHI <address@hidden>
> PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3
>
>