From: Eli Zaretskii <eliz@gnu.org>
To: dalanicolai <dalanicolai@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Question about weird vscroll behavior
Date: Sun, 05 Nov 2023 18:20:02 +0200 [thread overview]
Message-ID: <8334xk41fx.fsf@gnu.org> (raw)
In-Reply-To: <CACJP=3nLKsk6mLZ-GWDKEiJA6C4g_30Zrj453i_QQ5gM+bp7Fw@mail.gmail.com> (message from dalanicolai on Sun, 5 Nov 2023 16:49:04 +0100)
> From: dalanicolai <dalanicolai@gmail.com>
> Date: Sun, 5 Nov 2023 16:49:04 +0100
>
> 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)?
Works for me in "emacs -Q".
next prev parent reply other threads:[~2023-11-05 16:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-05 15:49 Question about weird vscroll behavior dalanicolai
2023-11-05 16:20 ` Eli Zaretskii [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8334xk41fx.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=dalanicolai@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.