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.help Subject: Re: Set-window-vscroll sometimes doesn't work Date: Mon, 26 Oct 2020 17:18:31 +0200 Message-ID: <83ft61f22g.fsf@gnu.org> References: <72B62847-3F35-412A-9F74-88442A936B19@gmail.com> <834kmrq7gy.fsf@gnu.org> <83blgyp4k2.fsf@gnu.org> <4F794407-585E-4C74-85F3-00A668FB9675@gmail.com> <834kmqp1ts.fsf@gnu.org> <835z74ope5.fsf@gnu.org> <1B858755-4CAE-4E06-B867-098B323EF79E@gmail.com> <83h7qnmtq4.fsf@gnu.org> <8C545387-7A95-4B4E-A71E-05949E8A4641@gmail.com> <183EE2A7-4FF5-4888-A6F5-BDE08BD5F482@gmail.com> <83imb2kzu0.fsf@gnu.org> <83eelqkx1k.fsf@gnu.org> <83a6wdlbns.fsf@gnu.org> <83r1poizhx.fsf@gnu.org> <9F2380D3-D1CC-410E-A91D-531AA0DFE1DB@gmail.com> <838sbwhz3k.fsf@gnu.org> <87blgpidq5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35549"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 26 16:20:33 2020 Return-path: Envelope-to: geh-help-gnu-emacs@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 1kX4IT-0009Ak-Aq for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 26 Oct 2020 16:20:33 +0100 Original-Received: from localhost ([::1]:59254 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kX4IS-00058k-Cm for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 26 Oct 2020 11:20:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kX4Gd-0003vr-KY for help-gnu-emacs@gnu.org; Mon, 26 Oct 2020 11:18:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56421) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kX4Gd-0006ei-Bu for help-gnu-emacs@gnu.org; Mon, 26 Oct 2020 11:18:39 -0400 Original-Received: from [176.228.60.248] (port=1557 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kX4Gc-0003Tv-Md for help-gnu-emacs@gnu.org; Mon, 26 Oct 2020 11:18:39 -0400 In-Reply-To: <87blgpidq5.fsf@gmail.com> (message from Jens C. Jensen on Mon, 26 Oct 2020 09:38:26 +0100) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:124721 Archived-At: > From: Jens C. Jensen > Date: Mon, 26 Oct 2020 09:38:26 +0100 > > On Sat, Oct 24 2020, Eli Zaretskii wrote: > > >> I really need to set them in the same time because when I scroll down, and stopped at a tall image (or tall line), I don’t want to scroll to the top of that image immediately. Instead, I want to scroll just enough to show the bottom of it. This requires setting window-start to that image and set vscroll = image height - line height. > > > > This makes no sense to me, because you want to deliberately deny the > > user from showing the entire screen line or its important parts. The > > bottom of a large image will generally not show anything important, > > and most of the screen line with the surrounding text could remain > > undisplayed. Why is that a good idea? just because some other editor > > behaves like that? > > Just to have another data-point, I also prefer the behaviour that Yuan is describing, it has > been a pet-peeve for me that images seems to pop into (and out of) existence when scrolling in a > buffer with inline-images. Smoothly scrolling over images seem to be how many other things > behave, PDF viewers, websites, etc. This is a misunderstanding: I have nothing against making image scrolling more smooth. The disagreement between us is not about the user-facing feature, it is about low-level details of the implementation, and how the display engine interprets certain flags. (Actually, such a discussion should be held on emacs-devel or the issue tracker, not here, precisely because it might confuse people who dwell here.)