]> git.eshelyaron.com Git - emacs.git/commit
Speed up display of long lines under 'truncate-lines'
authorEli Zaretskii <eliz@gnu.org>
Sat, 13 Aug 2022 13:59:22 +0000 (16:59 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 13 Aug 2022 13:59:22 +0000 (16:59 +0300)
commit94c10c426e305037126cf75cc5cf23c9f8df4664
tree25d2ac366fd51f72c9af79ede798a867c0c832ef
parent0ab572d5c991dee4818d364a65e004d20f1f45a1
Speed up display of long lines under 'truncate-lines'

* src/xdisp.c (partial_line_height): Return zero for long and
truncated lines.
(fast_move_it_horizontally): New function.
(hscroll_window_tree, display_line): Use
'fast_move_it_horizontally' in preference to
'move_it_in_display_line_to', when dealing with long and truncated
lines.
(redisplay_internal): Optimize "optimization 3" for long and
truncated lines.
* src/buffer.c (syms_of_buffer) <large-hscroll-threshold>: New
variable.

* etc/NEWS: Announce 'large-hscroll-threshold'.
etc/NEWS
src/buffer.c
src/xdisp.c