GNU bug report logs - #8355
24.0.50; Boxes in mode-line and scrolling

Previous Next

Package: emacs;

Reported by: Antoine Levitt <antoine.levitt <at> gmail.com>

Date: Sun, 27 Mar 2011 13:42:02 UTC

Severity: normal

Tags: fixed, moreinfo

Found in version 24.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #67 received at 8355 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 8355 <at> debbugs.gnu.org, antoine.levitt <at> gmail.com
Subject: Re: bug#8355: 24.0.50; Boxes in mode-line and scrolling
Date: Mon, 14 Dec 2020 20:26:23 +0200
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: antoine.levitt <at> gmail.com,  8355 <at> debbugs.gnu.org
> Date: Wed, 09 Dec 2020 18:24:35 +0100
> 
> (defun make-buffer ()
>   (switch-to-buffer "*images*")
>   (erase-buffer)
>   (let ((height (* (frame-pixel-height) 0.6))
> 	(width (* (frame-pixel-width) 0.7)))
>     (dotimes (i 10)
>       (let ((svg (svg-create width height)))
> 	(svg-rectangle svg 0 0 width height
> 		       :fill (format "#%02x%02x%02x"
> 				     (random 255)
> 				     (random 255)
> 				     (random 255)))
> 	(svg-text svg (format "Image %d" i)
> 		  :font-size 50
> 		  :fill "black"
> 		  :font-weight "bold"
> 		  :x (/ width 2)
> 		  :y (/ height 2)
> 		  :text-anchor "middle")
> 	(insert-image (svg-image svg :scale 1))
> 	(insert (format "\n\nImage %d\n\n" i))))))
> 
> Scroll downwards to the test "Image 4", for instance.  This is what I
> have in my window then:
> 
> So we see the entirety of Image 4, and the top of Image 5, and that's
> fine.  Then hit `M-v':
> 
> We see the entirety of image 2, and the top of image 3, which seems like
> we've overshot -- I'd expect to see the entirety of image 3, and the top
> of image 4.
> 
> Then C-v:
> 
> We're not back to where we started, but instead have the entirety of
> image 3, and the top of image 4 (which is what I'd expect when C-v-ing
> from where I was).
> 
> So I think Emacs behaves very nicely when C-v-ing down a buffer of large
> images, but when M-v-ing back up, it seems to scroll too far.

Thanks, this should now be fixed on the master branch.




This bug report was last modified 4 years and 126 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.