unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
To: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] master 0382fd4: xref-find-definitions: Exclude more generic function items.
Date: Thu, 13 Aug 2015 23:33:56 -0500	[thread overview]
Message-ID: <86fv3mv68b.fsf@stephe-leake.org> (raw)
In-Reply-To: <jwvwpwyuc3b.fsf-monnier+emacsdiffs@gnu.org> (Stefan Monnier's message of "Thu, 13 Aug 2015 17:14:15 -0400")

Stefan Monnier <monnier@IRO.UMontreal.CA> writes:

>> +(defcustom find-feature-regexp
>> +  (concat ";;; Code:")
>
> FWIW, I think this is overkill and marginally incorrect.
> (require 'foo) is Elisp's way to "include" a file, so xref should just
> jump to this file's buffer rather than to a specific location within
> that file.  Just like ffap does in a #include.

Yes, compatibility with ffap makes sense.

If the file is already in a buffer, it goes to the current point in that
buffer. Otherwise it goes to point-min.

That requires a change in xref--pop-to-location; it insists on going to
a marker. We'll have to introduce some flag value that means "preserve
current point". Or have the code that produces that marker set it
at the current point.

Short of that, just going to point-min is probably best.

--
-- Stephe



      reply	other threads:[~2015-08-14  4:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20150813182108.2057.52629@vcs.savannah.gnu.org>
     [not found] ` <E1ZPx7k-0000Xn-PT@vcs.savannah.gnu.org>
2015-08-13 21:14   ` [Emacs-diffs] master 0382fd4: xref-find-definitions: Exclude more generic function items Stefan Monnier
2015-08-14  4:33     ` Stephen Leake [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=86fv3mv68b.fsf@stephe-leake.org \
    --to=stephen_leake@stephe-leake.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).