|
From: | Dmitry Gutov |
Subject: | bug#44294: No widen by xref-find-definitions |
Date: | Wed, 28 Oct 2020 23:37:01 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 28.10.2020 22:01, Juri Linkov wrote:
Oh, sorry, I noticed this problem is just the tip of the iceberg, so creating a separate bug report from bug#5042 and bug#9917. The patch above fixes the problem of using xref-find-definitions in elisp-mode, but using xref-find-definitions in narrowed C files still fails with the error "Rerun etags: `%s' not found in %s". Here is an additional patch that fixes this as well:
Thank you. I'm fine with both patches, please feel free to install.
- (user-error "Rerun etags: `%s' not found in %s" - pat buffer-file-name))) + (if (or (= (point-min) 1) (not widen-automatically))
Couldn't a buffer be narrowed, but point-min still be equal to 1?
[Prev in Thread] | Current Thread | [Next in Thread] |