[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xref in a narrowed buffer?

From: Dmitry Gutov
Subject: Re: xref in a narrowed buffer?
Date: Wed, 4 Mar 2020 18:04:50 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

On 04.03.2020 17:46, Stefan Monnier wrote:
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

True. It's also an option.

I don't use narrowing, and don't understand its intended behavior, so someone else should make the choice on what is the best approach here.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]