unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
[parent not found: <emacs-mail-is-unusable-4@[87.69.4.28]>]
* bug#19060: [FIX INCLUDED] Off-by-one-line scrolling bug in window_scroll_pixel_based
@ 2014-11-15  6:57 Kelly Dean
  0 siblings, 0 replies; 33+ messages in thread
From: Kelly Dean @ 2014-11-15  6:57 UTC (permalink / raw)
  To: 19060

With 24.4, emacs -Q, then M-x split-window-horizontally, then open any file with a lot of long logical lines (each a few visual lines long), so that as you page down through the file, every screenful of text has some wrapped lines on it. Adjust the vertical size of your Emacs frame so that the vertical size of your Emacs windows is not an integer multiple of the visual line height, so that the bottom visual line of text is partially covered by the top of the mode line.
Scroll forward a couple pages using pgdn (scroll-up-command), then notice exactly which visual line is at the top, and which one is at the bottom. Press pgdn, then pgup, and notice that the text doesn't return to the previous position; instead, it's scrolled backward by one visual line. This bug wasn't in 24.3.

The bug is in window.c of the 24.4 release, line 5042. The fix is to change ⌜window_box_height (w)⌝ on that line to ⌜window_box_height (w) / dy * dy⌝ in order to align the result to an integer multiple of the visual line height, since as of 24.4, Emacs no longer ensures that window_box_height is such a multiple. Patch excluded, per request.

There might be a related bug (with the same fix) on line 4959, but I haven't tested that.

BTW on line 471 (copied from line 466) of window.h, ‟width” should be ‟height”.





^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2014-11-19 15:52 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <emacs-mail-is-unusable-4>
2014-11-15 14:10 ` bug#19060: [FIX INCLUDED] Off-by-one-line scrolling bug in window_scroll_pixel_based Angelo Graziosi
2014-11-15 14:33   ` martin rudalics
2014-11-15 17:18     ` Angelo Graziosi
2014-11-16 11:37       ` martin rudalics
2014-11-16 13:02         ` bug#19048: Frame height decreases at Emacs start Angelo Graziosi
2014-11-16 13:54           ` martin rudalics
2014-11-16 14:16             ` Angelo Graziosi
2014-11-16 14:22               ` martin rudalics
2014-11-16 14:33                 ` Angelo Graziosi
2014-11-16 14:42                   ` Angelo Graziosi
2014-11-16 15:14                   ` martin rudalics
2014-11-16 18:05                     ` Angelo Graziosi
2014-11-17 10:56                     ` Angelo Graziosi
2014-11-17 12:51                       ` Angelo Graziosi
2014-11-17 18:25                         ` martin rudalics
2014-11-17 19:50                           ` Angelo Graziosi
2014-11-18  7:51                             ` martin rudalics
2014-11-18 13:46                               ` Angelo Graziosi
2014-11-18 14:38                               ` Angelo Graziosi
2014-11-18 17:33                                 ` martin rudalics
2014-11-19  8:30                                   ` martin rudalics
2014-11-19 11:34                                     ` Angelo Graziosi
2014-11-19 15:52                                       ` martin rudalics
     [not found] <emacs-mail-is-unusable-4@[87.69.4.28]>
2014-11-15  9:27 ` bug#19060: [FIX INCLUDED] Off-by-one-line scrolling bug in window_scroll_pixel_based Eli Zaretskii
2014-11-15 11:13   ` martin rudalics
2014-11-15 11:17     ` Eli Zaretskii
2014-11-15 12:12       ` martin rudalics
2014-11-15 13:05         ` Eli Zaretskii
2014-11-15 13:29           ` martin rudalics
2014-11-15 13:47             ` Eli Zaretskii
2014-11-15 14:32               ` martin rudalics
2014-11-15 17:06                 ` Eli Zaretskii
2014-11-15  6:57 Kelly Dean

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).