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: Thu, 11 Jan 2018 18:41:53 +0200 Message-ID: <83efmw4ab2.fsf@gnu.org> References: <7b2bedb2-7d1d-7307-e62e-c413bf1cd2de@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1515688842 2451 195.159.176.226 (11 Jan 2018 16:40:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 11 Jan 2018 16:40:42 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 11 17:40:38 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 1eZfu9-0000Ka-Lz for ged-emacs-devel@m.gmane.org; Thu, 11 Jan 2018 17:40:37 +0100 Original-Received: from localhost ([::1]:54832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZfw9-0000Wx-8l for ged-emacs-devel@m.gmane.org; Thu, 11 Jan 2018 11:42:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60036) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZfvV-0000Wj-OK for emacs-devel@gnu.org; Thu, 11 Jan 2018 11:42:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZfvQ-0004SV-On for emacs-devel@gnu.org; Thu, 11 Jan 2018 11:42:01 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49797) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZfvQ-0004SR-LC; Thu, 11 Jan 2018 11:41:56 -0500 Original-Received: from [176.228.60.248] (port=3135 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eZfvQ-0003Hp-19; Thu, 11 Jan 2018 11:41:56 -0500 In-reply-to: <7b2bedb2-7d1d-7307-e62e-c413bf1cd2de@yandex.ru> (message from Dmitry Gutov on Thu, 11 Jan 2018 03:07:39 +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:221840 Archived-At: > From: Dmitry Gutov > Date: Thu, 11 Jan 2018 03:07:39 +0300 > > So, I want auto-detection, but the list of files I'm passing to etags is > very naively auto-generated (basically, all files in the project), and > includes languages that etags doesn't know about (e.g. CSS). > > How do I stop it from parsing them as Fortran files? Please add an option. There is already such an option: --language=none. If you have both files that you do want etags to parse for some language and files that you don't, then either put all the latter at the end of the list and precede them with --language=none, or wrap each such file name with "--language=none FILE --language=auto". This works because --language takes effect on files specified after it.