GNU bug report logs -
#8355
24.0.50; Boxes in mode-line and scrolling
Previous Next
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 #40 received at 8355 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:
> Yes, please.
This one should illustrate the problem, I think:
(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:
[Message part 2 (image/png, inline)]
[Message part 3 (text/plain, inline)]
So we see the entirety of Image 4, and the top of Image 5, and that's
fine. Then hit `M-v':
[Message part 4 (image/png, inline)]
[Message part 5 (text/plain, inline)]
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:
[Message part 6 (image/png, inline)]
[Message part 7 (text/plain, inline)]
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.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
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.