From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel 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 Message-ID: <83k1wn2z3q.fsf@gnu.org> References: <7b2bedb2-7d1d-7307-e62e-c413bf1cd2de@yandex.ru> <83efmw4ab2.fsf@gnu.org> <69829b9d-a415-c323-f347-1d187b506012@yandex.ru> <83y3l3331j.fsf@gnu.org> <87f0ba0a-3999-fbb9-f3a1-cc6868445129@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1515750041 4603 195.159.176.226 (12 Jan 2018 09:40:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 Jan 2018 09:40:41 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 12 10:40:37 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZvp8-0000IZ-G2 for ged-emacs-devel@m.gmane.org; Fri, 12 Jan 2018 10:40:30 +0100 Original-Received: from localhost ([::1]:57358 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZvr6-0007Y8-BN for ged-emacs-devel@m.gmane.org; Fri, 12 Jan 2018 04:42:32 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZvqV-0007Xf-Qx for emacs-devel@gnu.org; Fri, 12 Jan 2018 04:41:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZvqR-0005a5-1q for emacs-devel@gnu.org; Fri, 12 Jan 2018 04:41:55 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZvqQ-0005Zx-VF; Fri, 12 Jan 2018 04:41:50 -0500 Original-Received: from [176.228.60.248] (port=3683 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eZvqQ-0003tN-DP; Fri, 12 Jan 2018 04:41:50 -0500 In-reply-to: <87f0ba0a-3999-fbb9-f3a1-cc6868445129@yandex.ru> (message from Dmitry Gutov on Fri, 12 Jan 2018 11:23:46 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:221882 Archived-At: > Cc: emacs-devel@gnu.org > From: Dmitry Gutov > 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?