Hi,

I recognize libmagic as an equivalent of file(1).
Can it decide language type correctly?
Can it accommodate new languages?
Isn't it better to use it as a tool for creating file lists?

Regards,
Shigio


2017-02-21 10:39 GMT+09:00 Jun Sheng <[email protected]>:

> specifying the filetype in commandline is a good idea, but why not going
> further, make gtags read file type when read file list ?
>
> and I attached a patch, which will guess file type using libmagic
>
> On Mon, Feb 20, 2017 at 3:16 PM Shigio YAMAGUCHI <[email protected]> wrote:
>
>> Hi,
>> > Hi,
>> > There, what about adding file-type guessing when the source file does
>> not have a suffix?
>> >
>> > Currently when the file doesnot have a suffix, gnu global wont parse it,
>> > this is a problem when perl/python ... files. and gtags cant specify
>> lang-type on command-line.
>>
>> You are right.
>> Currently, we have a plan to do the following:
>> http://lists.gnu.org/archive/html/bug-global/2016-10/msg00003.html
>>
>> Does this specification fulfill your requirements?
>>
>> Regards,
>> Shigio
>>
>>
>> 2017-02-20 15:45 GMT+09:00 Jun Sheng <[email protected]>:
>>
>> Hi,
>> There, what about adding file-type guessing when the source file does not
>> have a suffix?
>>
>> Currently when the file doesnot have a suffix, gnu global wont parse it,
>> this is a problem when perl/python ... files. and gtags cant specify
>> lang-type on command-line.
>>
>>
>> _______________________________________________
>> Bug-global mailing list
>> [email protected]
>> https://lists.gnu.org/mailman/listinfo/bug-global
>>
>>
>>
>>
>> --
>> Shigio YAMAGUCHI <[email protected]>
>> PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3
>>
>


-- 
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