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

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

bug#46859: 28.0.50; [PATCH]: Add option to truncate long lines in xref.e


From: Dmitry Gutov
Subject: bug#46859: 28.0.50; [PATCH]: Add option to truncate long lines in xref.el
Date: Wed, 10 Mar 2021 04:06:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 08.03.2021 04:56, Dmitry Gutov wrote:
If you still get lines that are loo long in these cases, even with all extra text snipped away, hiding parts of the summary using text properties should be possible. I just tried putting 'invisible' on the whole line after column 600, and scrolling became instantaneous again.

As long as we undo these properties (or, perhaps, scroll the visible part?) when xref-next-line is called, the user would still be able to visit all matches.

Here's an experimental patch that does this.

As long as there are no matches near the end of the long string, everything seems snappy. If we do end up scrolling to near its end, though, moving around that line becomes slower.

Attachment: xref-long-line-visibility-truncation.diff
Description: Text Data


reply via email to

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