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 12:41:15 +0200 Message-ID: <83efmv2wc4.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> <83k1wn2z3q.fsf@gnu.org> <70cbd666-ef0a-364c-4a6f-91ce88f1a819@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1515753621 19235 195.159.176.226 (12 Jan 2018 10:40:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 Jan 2018 10:40:21 +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 11:40:17 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 1eZwkx-0004d4-SA for ged-emacs-devel@m.gmane.org; Fri, 12 Jan 2018 11:40:15 +0100 Original-Received: from localhost ([::1]:60643 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZwmx-00079f-2S for ged-emacs-devel@m.gmane.org; Fri, 12 Jan 2018 05:42:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZwmM-00079M-QV for emacs-devel@gnu.org; Fri, 12 Jan 2018 05:41:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZwmI-0002Bh-3C for emacs-devel@gnu.org; Fri, 12 Jan 2018 05:41:42 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZwmH-0002BS-Vj; Fri, 12 Jan 2018 05:41:38 -0500 Original-Received: from [176.228.60.248] (port=3723 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eZwmH-0003P7-Cd; Fri, 12 Jan 2018 05:41:37 -0500 In-reply-to: <70cbd666-ef0a-364c-4a6f-91ce88f1a819@yandex.ru> (message from Dmitry Gutov on Fri, 12 Jan 2018 13:03:44 +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:221885 Archived-At: > Cc: emacs-devel@gnu.org > From: Dmitry Gutov > Date: Fri, 12 Jan 2018 13:03:44 +0300 > > 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( Thanks. I consider these weak reasons, so it doesn't look a very urgent issue, especially since running etags on all the files in a tree is not a very wise thing to do anyway (as mentioned in http://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00383.html). However, feel free to file a feature request on debbugs, the implementation shouldn't be hard.