From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#22241: 25.0.50; etags Ruby parser problems Date: Sun, 31 Jan 2016 08:43:15 +0300 Message-ID: <56AD9EF3.3080104@yandex.ru> References: <86r3i9hnbt.fsf@yandex.ru> <83si1o45g1.fsf@gnu.org> <56A3C53D.1050408@yandex.ru> <83oacc3yx7.fsf@gnu.org> <56A3D47E.3030802@yandex.ru> <83mvrw3tuj.fsf@gnu.org> <56A3F3F9.8030404@yandex.ru> <8360yj3rtf.fsf@gnu.org> <83k2mrw952.fsf@gnu.org> <56AD33CF.6060105@yandex.ru> <83h9hu4dy8.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1454219061 6521 80.91.229.3 (31 Jan 2016 05:44:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 31 Jan 2016 05:44:21 +0000 (UTC) Cc: 22241@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 31 06:44:10 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aPknx-000455-K9 for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 Jan 2016 06:44:09 +0100 Original-Received: from localhost ([::1]:40597 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPknx-0005Pf-1U for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 Jan 2016 00:44:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPknt-0005PZ-Ug for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2016 00:44:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPknq-0000yJ-OC for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2016 00:44:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPknq-0000yF-KW for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2016 00:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aPknq-0003Ij-Fo for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2016 00:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Jan 2016 05:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22241-submit@debbugs.gnu.org id=B22241.145421900512636 (code B ref 22241); Sun, 31 Jan 2016 05:44:02 +0000 Original-Received: (at 22241) by debbugs.gnu.org; 31 Jan 2016 05:43:25 +0000 Original-Received: from localhost ([127.0.0.1]:42479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPknF-0003Hk-Ev for submit@debbugs.gnu.org; Sun, 31 Jan 2016 00:43:25 -0500 Original-Received: from mail-lb0-f178.google.com ([209.85.217.178]:34460) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPknD-0003HO-CT for 22241@debbugs.gnu.org; Sun, 31 Jan 2016 00:43:23 -0500 Original-Received: by mail-lb0-f178.google.com with SMTP id cl12so59393672lbc.1 for <22241@debbugs.gnu.org>; Sat, 30 Jan 2016 21:43:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=Xx5EGszfe0FF+aKY9poELWT54ac7yQbS7mU8kMbhTFc=; b=Swr3V42HHkcc6P4bZnN3Prj2la0VMpMKg3nfJc2uitl8MZhLR0KPF9JSUe16j8AGhf p2ayNSY+yiDMsC9Bu4d+QHdaokpRZghzrZ6tRsLxXzwQtleBKn31dGMfZm4ZMJQJcBXx /hRpww+GVIx8tzDcB839qEhEJhSI1sbD0wc6CG0waVgqSFBSxGI6JMs2jZCjyDuepd22 Jd8Bc1DaLpar7EtNXl7pLaQt0rJhDmht1oEVI/88KRTFmonGTGY4X6Wfg5matLwINPXN bOBk39t/Cz4A+sMulhD25ZN4EWYr5CSGBk2VvpftFHV0Qs6FVjgVm3cbjRWH3t8hf7aw LjIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=Xx5EGszfe0FF+aKY9poELWT54ac7yQbS7mU8kMbhTFc=; b=U25jcTHpy1db7CWFtbGFENzkCWlQPW5MkRJc2Iok8KQd175Jz9bM85agTArESHKWQq XHBYmBPhlOH075UFWRpruU+Dlf2jYW1umhXPHNe5l8VT7NO0D5bYdb8dg6bFl2l24P0r tbzD/t8V3CfUSx2Pkp/eJg4hpQ4AzN4WMSfgCLSZcxXIBjfSintx08Vwq71OsqZHxbaQ FE7V2ELE7UYG9UcgpPlsehWVvqIO2zgWFQJy+jx1B84kKpnCB+AZ7xCthNmpNB2URr0z rMA9t0BxQL/Mht31hqH+ag3fEtQpeoWdEPczNX4e6W1B7eI/XnXDuFJDvmh+H9iEqgZf ukew== X-Gm-Message-State: AG10YOTo+Qo5ZbExM76PrkohZSnngJ9lVnOELtkdhE4+OEFADVWgg+h1TVs6+BALY5GRyw== X-Received: by 10.112.146.34 with SMTP id sz2mr6151909lbb.96.1454218997529; Sat, 30 Jan 2016 21:43:17 -0800 (PST) Original-Received: from [192.168.1.190] ([178.252.127.222]) by smtp.googlemail.com with ESMTPSA id 84sm3120823lfp.17.2016.01.30.21.43.16 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 30 Jan 2016 21:43:16 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Thunderbird/44.0 In-Reply-To: <83h9hu4dy8.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112127 Archived-At: On 01/31/2016 06:37 AM, Eli Zaretskii wrote: > Right, that part is not implemented. Perhaps later. Is it terribly > important? Exuberant Ctags doesn't do it. I suppose it's rather a missing feature than a bug. It's fine if it's not in 25.1, but let's keep the bug open until it's implemented. >> Third, this is tangential, but I don't think anybody uses the .ruby >> extension for Ruby files (you can see it's not in auto-mode-alist). But >> maybe someone somewhere will use it for something else, and etags will >> erroneously parse that file as Ruby? > > I found that on the Internet, I can try to find that again. Please do. >> On the other hand, you might want to add *.ru, *.rbw, Rakefile and >> Thorfile to the list of Ruby file names. > > That's easy to add. Should we? I believe so. *.ru is a bit questionable (it's not an official Ruby extension, and it might be used by some other file formats), but it's used by a very popular Ruby library for web application init scripts, and those can contain different definitions (in practice, mostly constants, although it can have functions defined, if the application is tiny, or somehow exotic). *.rbw is the Windows extension for Ruby programs that don't need the cmd window. Rakefile and Thorfile can also contain definitions (usually constants, but not necessarily just them, in the former, and classes and methods in the latter).