From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov 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 00:49:36 +0300 Message-ID: <69829b9d-a415-c323-f347-1d187b506012@yandex.ru> References: <7b2bedb2-7d1d-7307-e62e-c413bf1cd2de@yandex.ru> <83efmw4ab2.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1515707716 16394 195.159.176.226 (11 Jan 2018 21:55:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 11 Jan 2018 21:55:16 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Thunderbird/58.0 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 11 22:55:12 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 1eZkoP-0003D4-9M for ged-emacs-devel@m.gmane.org; Thu, 11 Jan 2018 22:55:01 +0100 Original-Received: from localhost ([::1]:45282 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZkqO-0000Qn-Nm for ged-emacs-devel@m.gmane.org; Thu, 11 Jan 2018 16:57:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZkjJ-0002a7-Uu for emacs-devel@gnu.org; Thu, 11 Jan 2018 16:49:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZkjE-0000r6-Vo for emacs-devel@gnu.org; Thu, 11 Jan 2018 16:49:46 -0500 Original-Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]:36279) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eZkjE-0000q9-Nj; Thu, 11 Jan 2018 16:49:40 -0500 Original-Received: by mail-lf0-x233.google.com with SMTP id e203so4058536lfg.3; Thu, 11 Jan 2018 13:49:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=gadaWm0TLJasArpoarXAadUeerLS6ZBMRkChijd4O0s=; b=psGeO/SC9QM13OOy2pGPK2rteDI5Tmm04XdHw/FDFpt8Pe9sRszm6L2E9ZjEzhpGN1 UsBsCUjSky/4fTvI7o6IcHCFz0Pzg1+j48nL10EKUb1rJIPw853sbWvvPEx6CyC2YGLn L54OdMTlgwziYdd9Verb4H/oJKgrCAvubKbDBLoVc4U42iJ2eAa6Q2HaXlyGGne1sGdu Zip4f1Gi/NsMbfMwHjKdKwna844qkVk6IBiqwSRvaJhS7s7WRy6kZLjP9+EMoPT35XH7 BLc/YGjXgRjP8sMhoTrUGGsD23UwRzJY05LiE8k1oci5vN1kN974vzNVGXVfYv60jo8J hCxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=gadaWm0TLJasArpoarXAadUeerLS6ZBMRkChijd4O0s=; b=NIKZv+CnK9hfRetzN80Z0erk8yA5JsBNWudGG+lk+200LzchcB/ISgJRUgWS7kTqoE EVdl+Dr1tAXc2+2ATqCT8AWtK3WXV5OF3yxmRoaTbEllb3fSwUME2h/meLXS9VbFgTWY VUTn6QVa7JuhvLKPUGGCtDjqM21be/ldM9FTl7VhsiL2bFN4HfsDml0tOAJ8fgsWWH8r sdO/m+kBQEiSVMzVqbbEWXbipNg8dmn2HABoskuTSpUbwVd42DUeRqcTzsuKMK3ZnWer Yg57lDaWJCEzeNUuGNIQByD3UpY0ynfeddonGN0gx+9crI/RpxJUN9eg5a7Dt4McArwt tf/Q== X-Gm-Message-State: AKwxytfoIOen387ZhF8FnMVDH+Kdb6WCteniMndgPu1j3wiIZ7w4pWzs ZvqCl28D556gfv12rbk5hEdog6B1 X-Google-Smtp-Source: ACJfBovDoeLjgRO69kMLLJ7L/cvfQjixP/td3Lzx890n0HiS77bm6HOrU9NpD1zc8qiidHs3tg89fQ== X-Received: by 10.25.21.83 with SMTP id l80mr2758249lfi.102.1515707378746; Thu, 11 Jan 2018 13:49:38 -0800 (PST) Original-Received: from [192.168.1.174] ([178.252.127.239]) by smtp.googlemail.com with ESMTPSA id o21sm475211lfi.31.2018.01.11.13.49.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jan 2018 13:49:37 -0800 (PST) In-Reply-To: <83efmw4ab2.fsf@gnu.org> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::233 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:221860 Archived-At: On 1/11/18 7:41 PM, Eli Zaretskii wrote: > 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, I want etags to detect the language, but without the ridiculous fallback. Like described in its help output: ... If no such sequence is found, Fortran is tried first; if no tags are found, C is tried next. > 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. Won't "--language=none" stop it detecting the language based on file extension and the sharp-bang declaration?