[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ask etags to stop language auto-detection from falling back to Fortr
From: |
Eli Zaretskii |
Subject: |
Re: Ask etags to stop language auto-detection from falling back to Fortran and C? |
Date: |
Fri, 12 Jan 2018 11:41:29 +0200 |
> Cc: address@hidden
> From: Dmitry Gutov <address@hidden>
> Date: Fri, 12 Jan 2018 11:23:46 +0300
>
> > It will only
> > try the fallbacks if all the means to detect the language failed. So
> > what do you mean by "detect, but without the fallbacks"?
>
> I'm saying I don't want the fallbacks. If you've failed to detect the
> language based on the file extension or the sharp-bang, stop, don't try
> to parse the file with something that will most likely get wrong results.
>
> > It will, for the files following --language=none on the command line
> > (but not for those that come before this switch). But if the
> > extension and/or sharp-bang are in the file, the detection should not
> > have failed,
>
> It does if etags is unfamiliar with the file's language.
OK, so next question: why do you care about the fallbacks? At worst,
they will generate tags that no one will ever try to find, right?
IOW, can you present a real-life use case where these fallbacks do any
harm?
- Ask etags to stop language auto-detection from falling back to Fortran and C?, Dmitry Gutov, 2018/01/10
- Re: Ask etags to stop language auto-detection from falling back to Fortran and C?, Eli Zaretskii, 2018/01/11
- Re: Ask etags to stop language auto-detection from falling back to Fortran and C?, Dmitry Gutov, 2018/01/11
- Re: Ask etags to stop language auto-detection from falling back to Fortran and C?, Eli Zaretskii, 2018/01/12
- Re: Ask etags to stop language auto-detection from falling back to Fortran and C?, Dmitry Gutov, 2018/01/12
- Re: Ask etags to stop language auto-detection from falling back to Fortran and C?,
Eli Zaretskii <=
- Re: Ask etags to stop language auto-detection from falling back to Fortran and C?, Dmitry Gutov, 2018/01/12
- Re: Ask etags to stop language auto-detection from falling back to Fortran and C?, Eli Zaretskii, 2018/01/12
- Re: Ask etags to stop language auto-detection from falling back to Fortran and C?, Dmitry Gutov, 2018/01/12