all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Barry OReilly <gundaetiapo@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: emacs-lisp-mode and find-tag
Date: Fri, 20 Jun 2014 21:08:07 -0400	[thread overview]
Message-ID: <jwv38ezm5ya.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CAFM41H11Ptb7HkRov_qMhiCZRsNuH7nAQVPWapgu0MGwpgzv3A@mail.gmail.com> (Barry OReilly's message of "Fri, 20 Jun 2014 16:22:20 -0400")

>> `find-tag-definition-functions`
>> This should hold functions of one argument (a string)
> As I remarked in the bug report, the tag name alone is not
> sufficient for Semantic, because it considers the code
> surrounding the tag.

Very good point.  So either we limit it to "find def of thing-at-point",
or we need to have a "get thing at point" plus "find def of thing".
Splitting the two is tricky because different backends will want to
represent their "thing" differently, so the thing returned by one
backend's "get thing at point" won't be accepted by the "find def of
thing" of other backends.

Yet, the separation would be useful for things like company-mode
which want to let you jump to the definition of a completion candidate
(i.e. a "tag" which is not in the buffer).


        Stefan



  reply	other threads:[~2014-06-21  1:08 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-20 20:22 emacs-lisp-mode and find-tag Barry OReilly
2014-06-21  1:08 ` Stefan Monnier [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-06-20 12:32 Alfred M. Szmidt
2014-06-20 13:08 ` Eli Zaretskii
2014-06-20 15:52   ` Alfred M. Szmidt
2014-06-20 14:30 ` Stefan Monnier
2014-06-20 15:52   ` Alfred M. Szmidt
2014-06-20 16:24     ` Stefan Monnier
2014-06-20 16:52     ` Josh
2014-06-20 17:35       ` Stefan Monnier
2014-06-20 18:53         ` Ivan Kanis
2014-06-20 19:07           ` Josh

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=jwv38ezm5ya.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=gundaetiapo@gmail.com \
    /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.