[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: xref in a narrowed buffer?
From: |
Stefan Monnier |
Subject: |
Re: xref in a narrowed buffer? |
Date: |
Wed, 04 Mar 2020 10:46:37 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>> 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?
>
> The latter is pretty hard to do, so the former, I guess.
It could also signal a clean error telling the user the destination is
outside of the narrowed region, so the user can decide whether to widen
or not (and is aware of the fact that the source of the problem is the
narrowing).
Stefan