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

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

bug#56815: 29.0.50; Isearch lazy-highlight highlights too much when trun


From: Juri Linkov
Subject: bug#56815: 29.0.50; Isearch lazy-highlight highlights too much when truncate-lines is in effect
Date: Sun, 21 Aug 2022 22:03:48 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)

>> This means using the same condition like in 'line-move'?
>>
>>                   (and
>>                    (or truncate-lines
>>                        (and (integerp truncate-partial-width-windows)
>>                             (< (window-total-width)
>>                                truncate-partial-width-windows))
>>                        (and truncate-partial-width-windows
>>                             (not (integerp truncate-partial-width-windows))
>>                             (not (window-full-width-p))))
>>                    ;; ...or if lines are truncated, this buffer
>>                    ;; doesn't have very long lines.
>>                    (long-line-optimizations-p))
>
> Yes, this is the (unfortunately complicated) way of determining
> whether the window has truncated lines.

Would it be possible to refactor this to a separate function?
I guess it could be in simple.el.  But what would be a good name?
Maybe 'truncate-lines-p'?





reply via email to

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