[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
xref in a narrowed buffer?
From: |
Robert Pluim |
Subject: |
xref in a narrowed buffer? |
Date: |
Wed, 04 Mar 2020 15:39:48 +0100 |
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
- xref in a narrowed buffer?,
Robert Pluim <=