unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Question about weird vscroll behavior
@ 2023-11-05 15:49 dalanicolai
  2023-11-05 16:20 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: dalanicolai @ 2023-11-05 15:49 UTC (permalink / raw
  To: Emacs Devel

[-- Attachment #1: Type: text/plain, Size: 1313 bytes --]

Hi,

I am experiencing some weird behavior. I am simply trying to set the
vscroll. For that I first created a single overlay displaying a large
space and then use set-window-vscroll to set the vscroll.

It works when I simply load my Emacs configuration, but for some
reason it does not work when I start from emacs -Q.

Although I guess vscroll should be working on lines smaller than the
screen, just for testing I now display 3 'spaces' and then try to set
vscroll as follows:

(progn
>   (pop-to-buffer "example")
>   (dotimes (i 3)
>     (let ((o (make-overlay (point)
>                            (progn (insert " ")
>                                   (point)))))
>       (insert "\n")
>       (overlay-put o 'display `(space . (:width (600) :height (800))))
>       (overlay-put o 'face (list :background (pcase (% i 3)
>                                                (0 "red")
>                                                (1 "green")
>                                                (2 "blue"))))))
>   (goto-char (point-min))
>
>   (set-window-vscroll nil 300 t))
>

I have tested it on Emacs 29.1 and 28.3.

I wonder if this is a bug, or if I am missing something.  Could you
please evaluate the above code starting from emacs -Q, and confirm
this is a bug (or tell me what I am missing)?

Thanks

[-- Attachment #2: Type: text/html, Size: 1750 bytes --]

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

end of thread, other threads:[~2023-11-10 19:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-05 15:49 Question about weird vscroll behavior dalanicolai
2023-11-05 16:20 ` Eli Zaretskii
2023-11-05 16:36   ` dalanicolai
2023-11-05 17:01     ` Eli Zaretskii
2023-11-05 18:14       ` dalanicolai
2023-11-05 20:17         ` dalanicolai
2023-11-10 18:51           ` dalanicolai
2023-11-10 19:49             ` Eli Zaretskii

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).