]> git.eshelyaron.com Git - emacs.git/commit
Improvement for long lines in buffers with font locking.
authorGregory Heytings <gregory@heytings.org>
Mon, 25 Jul 2022 20:27:17 +0000 (20:27 +0000)
committerGregory Heytings <gregory@heytings.org>
Mon, 25 Jul 2022 20:31:00 +0000 (22:31 +0200)
commitcd41ce8c6c107901a499bf55dd2b0383befd37af
tree2501ff3f80fc1cd13b374cc0e230f3c98364473f
parent280b8c96ccaeb95548adda78466ef2b1c3cf4546
Improvement for long lines in buffers with font locking.

* src/xdisp.c (get_narrowed_width): Factored out from 'get_narrowed_len'.
(get_narrowed_len): Updated to use 'get_narrowed_width'.
(get_closer_narrowed_begv): New function.
(SET_WITH_NARROWED_BEGV): Add parameter to the macro.
(back_to_previous_line_start): Use the new function.
(get_visually_first_element, move_it_vertically_backward): Update the
calls to the macro.

* src/dispextern.h: Prototype of 'get_closer_narrowed_begv'.
Fix the prototypes of 'get_narrowed_begv' and 'get_narrowed_zv'.
src/dispextern.h
src/xdisp.c