bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#44294: No widen by xref-find-definitions


From: Juri Linkov
Subject: bug#44294: No widen by xref-find-definitions
Date: Thu, 29 Oct 2020 11:11:54 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

>> > -       (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?
>
> Yes, this should be (eql (buffer-size) (- (point-max) (point-min)).

It's nice that you arrived to the same code that is used in the
existing function buffer-narrowed-p (I missed it before).





reply via email to

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