From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: dalanicolai Newsgroups: gmane.emacs.devel Subject: Question about weird vscroll behavior Date: Sun, 5 Nov 2023 16:49:04 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000000a90bb060969aefa" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28496"; mail-complaints-to="usenet@ciao.gmane.io" To: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 05 16:50:29 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qzfOO-0007GZ-Mc for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Nov 2023 16:50:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qzfNZ-0006MA-ML; Sun, 05 Nov 2023 10:49:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qzfNY-0006Ld-5z for emacs-devel@gnu.org; Sun, 05 Nov 2023 10:49:36 -0500 Original-Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qzfNI-0006t4-Hy for emacs-devel@gnu.org; Sun, 05 Nov 2023 10:49:35 -0500 Original-Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-4083ac51d8aso28317925e9.2 for ; Sun, 05 Nov 2023 07:49:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699199356; x=1699804156; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=pmL0k43X7/1MHGycSFdexw1EuqUDUiKwHCOhqfl2itk=; b=UsriDmaut3ki50+JWI5LRs/Rz53tuXB7cn3O0kRMaNV+Ej1/BjQMpTlPnMJyyJk9KK JffKDbJ+L5WC7WHhFdcK3FMASAzZ4sc7fjxD6fx9pyx+Wg80Vy1gNMwbR9PCFikSgSqN YKd81/xlay6t77u/a3E6ODgMHMDmwE8mqSldleA4o4S6vg3osqHaxdUyVSDL5Jhu0uVF wzmTFh2m/GmKb70X37WkJELi01u86ADJ82u9T+WmSkoYIDFOK47V3KEoSWFt0Rcxoz++ 2//w99xTdrn2QzZWRn7UxZHwZMoP5CCiXBDAr4srSlOMDzJQx94JDtWNP1U4eVbTKWbE l+PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699199356; x=1699804156; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=pmL0k43X7/1MHGycSFdexw1EuqUDUiKwHCOhqfl2itk=; b=Xqj+YO8EHvHMoWpsaPtOMyURCAJR3OgJdJYe3DDOq9BigUo9l+LWzWkDE7kvo2k8rN fFqNj3mpM6EYW1Y3mgUZLHU5w8tqqufCyKi24IeI0iOE41+/U8eabloK7qpG0nz9BtKD 6lh2fUZow3XPwQc1hmJ7wldSqbt9vohUxLOkExhmStjp42v36b765JM7VoQgTJI6RNC2 CT9jZahV9HSNH64Lr99cBsbAp+R7KOwm8zhhzC2sJOUMhMn0YpJn7lImvwrxOKlNzsWP fxy5+KeaglMAZnCsHJtRdSlxaNeEjUstpzRVhxVIBxcq4cZmuTlXaPxv3GthdPG/0TXm 193w== X-Gm-Message-State: AOJu0Yzl83NaF+p0rU3MFMtYq2WLSUfKYY0QXk8sTLdUlgt8LBpLfCsf VIQp91R3Tihv10v3L+zxWtFNbsyUykcMgqvDZIIgoW0IhAQ= X-Google-Smtp-Source: AGHT+IGXOGZnQsZIYzha+bKUXgwfvrAWv7RnegJHq/9XshD0Wqm5SAaD5sxkZdBFtTxItgsX0QKsWaMDs7q0Muk72JU= X-Received: by 2002:a05:600c:45c4:b0:405:40ab:7693 with SMTP id s4-20020a05600c45c400b0040540ab7693mr23327643wmo.31.1699199356406; Sun, 05 Nov 2023 07:49:16 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=dalanicolai@gmail.com; helo=mail-wm1-x32b.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:312248 Archived-At: --0000000000000a90bb060969aefa Content-Type: text/plain; charset="UTF-8" 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 --0000000000000a90bb060969aefa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I am experiencing some weird behavior. I am sim= ply 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 vsc= roll.

It works when I simply load my Emacs configuration, but for so= me
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:

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

I have tested it on Emacs 29.1 an= d 28.3.

I wonder if this is a bug, or if I am missing something.=C2= =A0 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
=
--0000000000000a90bb060969aefa--