all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] emacs-25 504696d: Etags: yet another improvement in Ruby tags
Date: Fri, 5 Feb 2016 13:11:50 +0300	[thread overview]
Message-ID: <56B47566.5090806@yandex.ru> (raw)
In-Reply-To: <83mvrfv7s3.fsf@gnu.org>

On 02/05/2016 12:14 PM, Eli Zaretskii wrote:

> No.  What comes after the comma must begin with attr_SOMETHING or
> alias_method.  The issue being tested here is that we are not in a
> state where matches for these are being tried.

     alias_method :qux, :tee, attr_accessor(:bogus)

or

     alias_method :qux, :tee, alias_method(:bogus, :bogus2)

are the main options, I suppose. But they might also look misleading, 
and indicate that we don't support the paren-using syntax intentionally.

(It's another omission, but AFAICS nobody uses attr_XXX without parens 
in the context we're interested in.)

> But if you ever figure out how to do that with a less abnormal syntax,
> feel free to update the test files.

The problem with me updating the tests is I can't revert the 
corresponding fix and make sure that the test fails without it.

> It could also be a good idea to add a Rakefile or a Thorfile to the
> ruby-src directory (when I tested the change, I just renamed one of
> the other files).  It could be that those present special challenges,
> and in any case we should test the file-name rules.

I believe the file-name rules should be tested in a language-agnostic 
way, or just with one language. There's not much point in having all 
possible file names in test/etags. Or at least that's how I usually try 
to write tests: in as orthogonal way as possible.

> OK, thanks.  I guess we now have the "best etags in the West" (and in
> the East as well), as far as Ruby support is concerned.

You could say so.

It's definitely better than "Exuberant Ctags 5.9~svn20110310" I have 
installed through the default Ubuntu repositories.

It's better [0] than "Ctag Revival" [1], at least until they add support 
for qualified tags for Ruby [2], which could take a while.

We're probably better in some things, and worse in others, than "Ripper 
Tags" [3]. I haven't tried them yet myself.

In any case, it'll give me something to try using day-to-day, when we 
have at least some solution for tags being out of date (an experimental 
xref backend that simply rescans the whole project every time comes to 
mind).

[0] https://github.com/universal-ctags/ctags/issues/408
[1] https://github.com/universal-ctags/ctags
[2] https://github.com/universal-ctags/ctags/issues/524
[3] https://github.com/tmm1/ripper-tags/



  reply	other threads:[~2016-02-05 10:11 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20160203162536.2954.45438@vcs.savannah.gnu.org>
     [not found] ` <E1aR0FM-0000mG-Up@vcs.savannah.gnu.org>
2016-02-03 23:46   ` [Emacs-diffs] emacs-25 504696d: Etags: yet another improvement in Ruby tags Dmitry Gutov
2016-02-04  3:48     ` Eli Zaretskii
2016-02-04  9:36       ` Dmitry Gutov
2016-02-04 17:28         ` Eli Zaretskii
2016-02-05  5:26           ` Dmitry Gutov
2016-02-05  5:29             ` Dmitry Gutov
2016-02-05  9:14             ` Eli Zaretskii
2016-02-05 10:11               ` Dmitry Gutov [this message]
2016-02-05 11:15                 ` Eli Zaretskii
2016-02-05 11:26                   ` Eli Zaretskii
2016-02-05 12:15                   ` Dmitry Gutov
2016-02-05 14:34                     ` Eli Zaretskii
2016-02-06  9:09                     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56B47566.5090806@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.