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 13:03:44 +0300 Message-ID: <70cbd666-ef0a-364c-4a6f-91ce88f1a819@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> <87f0ba0a-3999-fbb9-f3a1-cc6868445129@yandex.ru> <83k1wn2z3q.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 1515751354 5526 195.159.176.226 (12 Jan 2018 10:02:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 Jan 2018 10:02:34 +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 11:02:30 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 1eZwAP-000193-Lk for ged-emacs-devel@m.gmane.org; Fri, 12 Jan 2018 11:02:29 +0100 Original-Received: from localhost ([::1]:58608 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZwCP-0007kP-0I for ged-emacs-devel@m.gmane.org; Fri, 12 Jan 2018 05:04:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZwBj-0007k6-Hn for emacs-devel@gnu.org; Fri, 12 Jan 2018 05:03:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZwBg-0003PI-FP for emacs-devel@gnu.org; Fri, 12 Jan 2018 05:03:51 -0500 Original-Received: from mail-lf0-x235.google.com ([2a00:1450:4010:c07::235]:36310) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eZwBg-0003Of-92; Fri, 12 Jan 2018 05:03:48 -0500 Original-Received: by mail-lf0-x235.google.com with SMTP id e203so5345669lfg.3; Fri, 12 Jan 2018 02:03:48 -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=EgKTKkHLYk2tnjz7RiQgdfyntMh897yfLlbd98R4vd0=; b=tY/N2+SWLduA4w8VF4tcRghNAxdtvd+TWIACRLXjeAyHT5ivhifyHgFt5E7GJ02yp1 JtiXjX/SOsys9e3REtHenSpkwTZvIzMlrYR/tFFMYfPTQUXeUiqJobcnksUJvQw4KBvU YmisQg7JMfIOvkgKnlHAqHAIe11NeqvVWJblO3C7naF3rnH7+bB+OqXskl6Tb76zDLLL 81mj0L+eV3fqjLK6tt3EB4C8sRQ+l5E6wv3G2AIEStZv18z1E8IOvKFAaFFGf7lfdS62 wcJ+cPEIzYkR6JNM1mIZII22nsE5N+f2gMOa8KHgrEOQQE6gJuo/hlWLpPCc7bYw/0bX OC/g== 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=EgKTKkHLYk2tnjz7RiQgdfyntMh897yfLlbd98R4vd0=; b=SI7czmnJs6FJET8I0N8voQDb+abLyVkqJw3ZYgzk2nkYVm4qihjZjs1BTNeVwCovpk HIFClL+FQXvJ805Rbg2tL+XH3ofkYrHPLefbeHYEYgCrAzJtXeYzVgckWJU6MXxV/jOw vPPQ+XQ7IIrvLmahrBZVDWosrSoTESK5bbQTtXVM/rxyapL0AS/0Rv5iK7FkawwYJUE6 RpsIzscCisHMGtTZwrmkVaknsZxAoRhdr9sMrZ9ePYJFepV+PCA2Lm5cWDjy5+ytVWJc 8G1HqVjlHDcns5ZMEhHwB6TodHbK5eNb5jBRIKGPkafdFn9vjEN/R/XEcAFm+Gf2nQrA WK/Q== X-Gm-Message-State: AKwxytcH8/pcu2UTfM9vXIyr5+gcpC7xUKxOZRwA/ZD4eKnD7oO9A58W Jzp0BmZdeGdkdpRhIPbM9RjQWtnI X-Google-Smtp-Source: ACJfBovrlOyh8vZ430mO4qIbZIwAmmGi2A1s/DNAJ7MdPzMvHsy1soOEOTPpkJlVwZrWW7WLhPwkkw== X-Received: by 10.25.225.215 with SMTP id l84mr7472691lfk.110.1515751426661; Fri, 12 Jan 2018 02:03:46 -0800 (PST) Original-Received: from [192.168.1.174] ([178.252.127.239]) by smtp.googlemail.com with ESMTPSA id n143sm3698037lfb.71.2018.01.12.02.03.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Jan 2018 02:03:45 -0800 (PST) In-Reply-To: <83k1wn2z3q.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::235 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:221884 Archived-At: On 1/12/18 12:41 PM, Eli Zaretskii wrote: > 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? a) That increases the parsing time. Like, makes in 2-3 times longer in one example I had. b) It creates very weird entries, like some multiline undisplayable byte sequence in one example (an OTF file, IIRC), and those do show up in the completions list, for xref-find-references. Or C-u xref-find-definitions. c) It does create false positives for real names. For instance, I can search for the definition of 'push' (a method in Ruby or JS), and it will show me these as possible destinations: /home/dgutov/xxx/yyy/zzz/public/app/less/bs-less/mixins/grid.less 33: .make-xs-column-push( 57: .make-sm-column-push( 85: .make-md-column-push( 113: .make-lg-column-push(