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, 19 Oct 2020 05:23:41 +0300 Message-ID: <834kmrq7gy.fsf@gnu.org> References: <72B62847-3F35-412A-9F74-88442A936B19@gmail.com> <83eelvsivm.fsf@gnu.org> <853C8CD1-B58B-4F22-A889-4AB2AEE3DD80@gmail.com> <83imb7qw46.fsf@gnu.org> <66013ADF-731C-4922-8AF7-EAFDBF43C33C@gmail.com> <83ft6bqv0q.fsf@gnu.org> <4F2C1811-940E-4C58-8EE0-37AA3B666E12@gmail.com> <835z77qr3f.fsf@gnu.org> 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="35668"; 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 19 04:27:07 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 1kUKt9-0009DD-PT for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 19 Oct 2020 04:27:07 +0200 Original-Received: from localhost ([::1]:58856 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUKt8-00026p-Rf for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 18 Oct 2020 22:27:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUKpn-0007cS-FD for help-gnu-emacs@gnu.org; Sun, 18 Oct 2020 22:23:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53216) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUKpl-0004sO-K9 for help-gnu-emacs@gnu.org; Sun, 18 Oct 2020 22:23:37 -0400 Original-Received: from [176.228.60.248] (port=3998 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kUKpl-0003sd-1x for help-gnu-emacs@gnu.org; Sun, 18 Oct 2020 22:23:37 -0400 In-Reply-To: (message from Yuan Fu on Sun, 18 Oct 2020 16:06:11 -0400) 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:124563 Archived-At: > From: Yuan Fu > Date: Sun, 18 Oct 2020 16:06:11 -0400 > Cc: help-gnu-emacs@gnu.org > > >> 1. Is it true that move_it_by_lines regards an image as one display line? > > > > Yes. That's why we need vscroll in the first place. > > Cool. I’m thinking about wrapping move_it_by_lines in window_scroll_pixel_based with a version that regards images (and tall lines) as several lines. Do you see some potential problems with that? What is the problem with the existing code that you are trying to solve? Whatever it is, it is highly likely that the solution already exists, and no new code is needed.