emacs-devel
[Top][All Lists]
Advanced

[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: Dmitry Gutov
Subject: Re: Ask etags to stop language auto-detection from falling back to Fortran and C?
Date: Fri, 12 Jan 2018 11:23:46 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Thunderbird/58.0

On 1/12/18 11:16 AM, Eli Zaretskii wrote:

I want etags to detect the language, but without the ridiculous
fallback.

I don't understand: if the file's language can be detected by means
known to etags, then it will never get to the fallbacks.

OK, to *try to* detect the language.

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]