aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorGregory Heytings2022-07-08 21:22:52 +0000
committerGregory Heytings2022-07-08 23:36:58 +0200
commit1792cbaddc33772c344e45fb9478bee85fee66e7 (patch)
tree6bc87aa85e8c14091ef00433a52d28b99d9d0d32 /src/window.c
parent60e51595c8a89ffc34dbe0d36c75d1c119a7d5c5 (diff)
downloademacs-1792cbaddc33772c344e45fb9478bee85fee66e7.tar.gz
emacs-1792cbaddc33772c344e45fb9478bee85fee66e7.zip
Actually fix the long lines display bug (bug#56393).
* src/dispextern.h (struct it): New 'narrowed_begv' field. * src/dispextern.h (WITH_NARROWED_BEGV): New macro. * src/xdisp.c (get_narrowed_begv): New function. (init_iterator): Initilize the 'narrowed_begv' field. (back_to_previous_line_start, get_visually_first_element, move_it_vertically_backward): Use the new macro. * src/dispextern.h: Prototype of 'get_narrowed_begv'. * src/window.c (window_body_height): Make it externally visible. * src/window.h: Prototype of 'window_body_height'. * src/composite.c (find_automatic_composition): Optimize display in buffers with very long lines with 'get_narrowed_begv'. * lisp/obsolete/longlines.el: Reobsolete longlines-mode. * etc/NEWS: Announce the new minor mode, and remove the unobsoletion indication for 'longlines-mode'. * doc/emacs/trouble.texi (Long Lines): Remove the section. (Lossage): Remove the entry for the Long Lines section. * doc/emacs/emacs.texi (Top): Remove the entry for the Long Lines section.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index af463b90ce6..61ca9feb64d 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1028,7 +1028,7 @@ window_body_unit_from_symbol (Lisp_Object unit)
1028/* Return the number of lines/pixels of W's body. Don't count any mode 1028/* Return the number of lines/pixels of W's body. Don't count any mode
1029 or header line or horizontal divider of W. Rounds down to nearest 1029 or header line or horizontal divider of W. Rounds down to nearest
1030 integer when not working pixelwise. */ 1030 integer when not working pixelwise. */
1031static int 1031int
1032window_body_height (struct window *w, enum window_body_unit pixelwise) 1032window_body_height (struct window *w, enum window_body_unit pixelwise)
1033{ 1033{
1034 int height = (w->pixel_height 1034 int height = (w->pixel_height