all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: charles@aurox.ch (Charles A. Roelli)
To: Robert Pluim <rpluim@gmail.com>
Cc: 31027@debbugs.gnu.org
Subject: bug#31027: 27.0.50; xref, tags-location-ring equivalent
Date: Tue, 03 Apr 2018 19:58:45 +0200	[thread overview]
Message-ID: <m2vad818a2.fsf@aurox.ch> (raw)
In-Reply-To: <87efjwyd4a.fsf@gmail.com> (message from Robert Pluim on Tue, 03 Apr 2018 09:15:33 +0200)

> Authentication-Results: sinyavsky.aurox.ch (amavisd-new); 	dkim=pass (2048-bit key) header.d=gmail.com
> From: Robert Pluim <rpluim@gmail.com>
> Cc: 31027@debbugs.gnu.org
> Mail-Copies-To: never
> Gmane-Reply-To-List: yes
> Date: Tue, 03 Apr 2018 09:15:33 +0200
> Content-Type: text/plain
> 
> charles@aurox.ch (Charles A. Roelli) writes:
> 
> > tags-location-ring seems to have no replacement in xref.el.
> >
> > from etags.el:
> > (defvar tags-location-ring (make-ring xref-marker-ring-length)
> >   "Ring of markers which are locations visited by \\[find-tag].
> > Pop back to the last location with \\[negative-argument] \\[find-tag].")
> >
> > We should add a "xref-location-ring" (or similar) that stores the
> > locations visited by "xref-find-definitions", and we can allow jumping
> > to them with C-u - M-., in the same way as "find-tag" does.
> 
> xref has a marker stack. The following is bound to "M-," by default.
> 
> (defun xref-pop-marker-stack ()
>   "Pop back to where \\[xref-find-definitions] was last invoked."
>   (interactive)

The xref marker stack (in xref--marker-ring) is a different beast: it
stores the list of places where xref-find-definitions was invoked.  I
suggest having another marker stack that tracks the list of places
jumped to by xref-find-definitions.





  reply	other threads:[~2018-04-03 17:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-02 18:06 bug#31027: 27.0.50; xref, tags-location-ring equivalent Charles A. Roelli
2018-04-03  7:15 ` Robert Pluim
2018-04-03 17:58   ` Charles A. Roelli [this message]
2018-04-03 20:32 ` Dmitry Gutov
2018-04-04 18:37   ` Charles A. Roelli
2018-04-04 18:57     ` Dmitry Gutov
2018-04-04 19:25       ` Eli Zaretskii
2018-04-04 20:59       ` Juri Linkov
2018-04-04 22:14         ` Dmitry Gutov
2018-04-05 18:56           ` Charles A. Roelli
2018-04-05 21:05             ` Dmitry Gutov
2018-04-08  9:14               ` Charles A. Roelli
2018-04-07 20:56           ` Juri Linkov

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=m2vad818a2.fsf@aurox.ch \
    --to=charles@aurox.ch \
    --cc=31027@debbugs.gnu.org \
    --cc=rpluim@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.