From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Question about weird vscroll behavior Date: Sun, 05 Nov 2023 18:20:02 +0200 Message-ID: <8334xk41fx.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18462"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: dalanicolai Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 05 17:20:42 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 1qzfre-0004VS-0q for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Nov 2023 17:20:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qzfrK-0004sk-43; Sun, 05 Nov 2023 11:20:22 -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 1qzfrH-0004sA-RB for emacs-devel@gnu.org; Sun, 05 Nov 2023 11:20:19 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qzfrH-0004F5-IT; Sun, 05 Nov 2023 11:20:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=F3Y2IbHOWBo8JyyjMCTJJyXnNxtY7d4y9Z2NybYZMZw=; b=MgHqr6NTQ5ur JOxC4mgQrFn7zsXcXeZ6QyYcZNeAWzHVzSBSBty1c0MLkvxfh2IFzXJPYW7H7fs3+mGRyEYYL/2HT xL4JBHOTe1JsCg0z5l5M2b34pO5zfYOQEDaATc+BmYJmqifnA0cOYW3coBxf1G8XeHVLpuRxTlL7n ZEtJwbSNajFn+qohgTzuR3vPEnZo9HWmWmxdTKuApKnfBwDTgGa2Ax/+ed3PeZ6paV/uainBATBSI 0S47/yDVAS+Ed3jK83oALBl+MMNjb2ti4NrSWWNsa/w7dxqItXXksUMRJ1ztZ/YILLS1sp2z/FrwQ qIwfxPMazpapavIaGhx52g==; In-Reply-To: (message from dalanicolai on Sun, 5 Nov 2023 16:49:04 +0100) 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:312251 Archived-At: > From: dalanicolai > 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".