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: Scrolling over images/tall lines Date: Tue, 03 Nov 2020 17:14:48 +0200 Message-ID: <83h7q6cw0n.fsf@gnu.org> References: <043AA439-A3AA-4736-8A76-1A8B8344819A@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37300"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 03 16:37:14 2020 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 1kZyMz-0009bQ-H8 for ged-emacs-devel@m.gmane-mx.org; Tue, 03 Nov 2020 16:37:13 +0100 Original-Received: from localhost ([::1]:57954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZyMy-0006wG-H6 for ged-emacs-devel@m.gmane-mx.org; Tue, 03 Nov 2020 10:37:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZy1S-0002Af-FD for emacs-devel@gnu.org; Tue, 03 Nov 2020 10:14:58 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45041) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZy1S-0002vq-2I; Tue, 03 Nov 2020 10:14:58 -0500 Original-Received: from [176.228.60.248] (port=1226 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kZy1Q-00007K-7W; Tue, 03 Nov 2020 10:14:56 -0500 In-Reply-To: <043AA439-A3AA-4736-8A76-1A8B8344819A@gmail.com> (message from Yuan Fu on Mon, 2 Nov 2020 16:48:59 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:258645 Archived-At: > From: Yuan Fu > Date: Mon, 2 Nov 2020 16:48:59 -0500 > > P.S. The case where I have to set window-start and window-vscroll in the same time is this: consider this window: > > (1)--------------------+ > | | > | image | > | | > | | > | | > +----------------------+ > +------window top--------------+ > |==========line========== | > |==========line========== | > |==========line========== | > > If I now scroll up one line, I want to see this: > > (1)--------------------+ > | | > | image | > | | > | | > +------window top--------------+ > || | | > |+----------------------+ | > |==========line========== | > |==========line========== | > |==========line========== | > > Which requires setting window-start to (1) and setting vscroll to image-height - default-line-height. Why can't you achieve the same by leaving window-start at its original place (2) and setting vscroll to get the display you want, like this: +----------------------+ | | | image | | | | | +------window top--------------+-- || | | ^ |+----------------------+ | | vscroll (negative) |(2)=======line========== | v |==========line========== | |==========line========== | Did you try this method?