all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* xref in a narrowed buffer?
@ 2020-03-04 14:39 Robert Pluim
  2020-03-04 15:20 ` Dmitry Gutov
  0 siblings, 1 reply; 7+ messages in thread
From: Robert Pluim @ 2020-03-04 14:39 UTC (permalink / raw)
  To: emacs-devel

Iʼm not sure this counts as a bug, so I thought Iʼd ask:

    visit src/fontset.c, move point until youʼre inside 'set_fontset_font'
    C-x n d ; narrow-to-defun
    C-s FONTSET_ADD <RET>
    M-. <RET> ; xref-find-definitions
    C-n <RET> ; xref-goto-xref

    => echo area shows: Rerun etags: `^#define FONTSET_ADD(' not found
    in /Users/rpluim/repos/emacs/src/fontset.c

Should 'xref-goto-ref' widen the buffer before attempting to jump to
the definition? Or should 'xref-find-definitions' not show definitions
that are outside the narrowed area?

Robert



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-03-04 18:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-04 14:39 xref in a narrowed buffer? Robert Pluim
2020-03-04 15:20 ` Dmitry Gutov
2020-03-04 15:46   ` Stefan Monnier
2020-03-04 16:04     ` Dmitry Gutov
2020-03-04 16:38       ` Eli Zaretskii
2020-03-04 16:08   ` Robert Pluim
2020-03-04 18:18     ` Dmitry Gutov

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.