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 11:23:46 +0300 Message-ID: <87f0ba0a-3999-fbb9-f3a1-cc6868445129@yandex.ru> References: <7b2bedb2-7d1d-7307-e62e-c413bf1cd2de@yandex.ru> <83efmw4ab2.fsf@gnu.org> <69829b9d-a415-c323-f347-1d187b506012@yandex.ru> <83y3l3331j.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 1515745356 16909 195.159.176.226 (12 Jan 2018 08:22:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 Jan 2018 08:22:36 +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 Fri Jan 12 09:22:32 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 1eZuba-0003jx-JO for ged-emacs-devel@m.gmane.org; Fri, 12 Jan 2018 09:22:26 +0100 Original-Received: from localhost ([::1]:53204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZuda-0008Lv-8h for ged-emacs-devel@m.gmane.org; Fri, 12 Jan 2018 03:24:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZud0-0008Lf-UF for emacs-devel@gnu.org; Fri, 12 Jan 2018 03:23:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZucw-00081k-VX for emacs-devel@gnu.org; Fri, 12 Jan 2018 03:23:54 -0500 Original-Received: from mail-lf0-x232.google.com ([2a00:1450:4010:c07::232]:44134) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eZucw-0007zE-Nv; Fri, 12 Jan 2018 03:23:50 -0500 Original-Received: by mail-lf0-x232.google.com with SMTP id w23so5014439lfd.11; Fri, 12 Jan 2018 00:23:50 -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=aJlm/tXSLxhbkNlue7v9Y2XsdGAXr9NG6KuXwj2KqkU=; b=PgtdbM+d7l2NdPqVDqFB/II3XTnyPJsfsxcebMRBR7tSqcsM7Zfs+utiYvpPMv89p0 pinFaO7JnOMZ8LWlzMGiZPQM2qN06/jiLk5OUz3t9BVQVXZNSu2SEbb2+jcjCL8Q9PSg HXn8si7T2lqnJWiXoO5wRqiW2oHuv+HwL0CnZvXFtQqdmVweNbdHFQW4GJtuq7iyowK2 d1MbQkROYZwf2OUUDV00ClLL/RucJ3cq8KfOlzsWshX02KIA/nZ6OP2obsO4FG62qHav d5igv/yOhcB1AZMxQmuwdwqCtNs0YFGCIZ2RhBcYpF8e2mbeyCveYI1NIYhs+FP/BFvg UhFg== 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=aJlm/tXSLxhbkNlue7v9Y2XsdGAXr9NG6KuXwj2KqkU=; b=L8l4g6GplihXc7VpBB1/zFx3TpdaynfOJIjxxuiyzIK5R4syG60kD4SWTob9QUBm1w VfW1+VDZHAWs1k4MtBwldBtqUHGKK/GHJHGc2OekRofDXgcV6mpqJsIeFLnsG0IImHEv HCmfi7ziceuLshDtMN6HmR/r7ZnV7UiGlytA0SqdEUgnS3k/t0ZMgNQubTO+WVc8XECu xvOO9aRbFEl4ILasP9ssbmZdeo3+U1pglD4c/yqqgTu1GqZW+I+8pzI9WpwcrBg8ikle ePDYw4fVdukyyApnTVeWrM7B2thnrNuRKHNK9VM1g3weAdSJQ8O8n936JWrb77MW9Ct8 2IVA== X-Gm-Message-State: AKwxyteY4ejiGVce6laNqH1QLgiJIsJyMunaFtXb4RhRmuuXMDMOVnHC eCTyFN353/90djcY1G/6ZiWmdZO3 X-Google-Smtp-Source: ACJfBouWHOsTiM1JgHtVye1Qia4XM36UOJoQAikgsMVxkIocOa8wfldUXT2n2H7fG+/pK2+wd6GrkA== X-Received: by 10.25.233.93 with SMTP id g90mr7127701lfh.99.1515745428983; Fri, 12 Jan 2018 00:23:48 -0800 (PST) Original-Received: from [192.168.1.174] ([178.252.127.239]) by smtp.googlemail.com with ESMTPSA id v12sm4158801ljd.15.2018.01.12.00.23.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Jan 2018 00:23:48 -0800 (PST) In-Reply-To: <83y3l3331j.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::232 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:221873 Archived-At: 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.