From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.help Subject: Re: Set-window-vscroll sometimes doesn't work Date: Mon, 19 Oct 2020 02:00:02 -0400 Message-ID: <8054A31B-655E-4EA9-B349-D90F21022881@gmail.com> 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> <834kmrq7gy.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16131"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 19 08:01:19 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 1kUOEQ-00043z-VB for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 19 Oct 2020 08:01:18 +0200 Original-Received: from localhost ([::1]:40454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUOEP-0004MU-VN for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 19 Oct 2020 02:01:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUODK-0004ML-UY for help-gnu-emacs@gnu.org; Mon, 19 Oct 2020 02:00:10 -0400 Original-Received: from mail-il1-x132.google.com ([2607:f8b0:4864:20::132]:35193) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kUODF-0002CW-KH; Mon, 19 Oct 2020 02:00:10 -0400 Original-Received: by mail-il1-x132.google.com with SMTP id j17so9307059ilr.2; Sun, 18 Oct 2020 23:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=nDwpGHh0lvDAnLuAtti8WWbprx1TkfcC7u47TYkmwjs=; b=mYpf+EFMLxl8Bbd8Qs02dwvF4n0fU0OOtrAdHVO4VXM1kgPAtKGHJG9pOjWbABaKV7 TNxEu/UrBswLERJefQRbNlHJrqaVclYjggEmVURSun6DK2l+/2Zm5zL96JYae+YaTvZs I+DIw77dLhrryNEmUCDHubnNG0+HTi4/LYJqdyYVbPs8LZFC5XNDeHt+rwwSXlZEww2I DuQOLtPqdXL5MpWZlJYBnmv60yYgDTSROiGErpCUm9H1BbUdbQEL6EYEeDSKOk9ie1+W UYF04QVKGdkyxOV1st9V96fx8JgvF1nhzVE6W8o1tc62oYR/J0UGsn1ihGMXD2WUVram mzXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=nDwpGHh0lvDAnLuAtti8WWbprx1TkfcC7u47TYkmwjs=; b=ML5jbl5DbVnlffVfDgssw66+BNQo2nP/sH4e6p0ImPZBlVS1z5UQ2o/SSGOM0QAILB wJilnIS6WHc6/hlnQXHhJC0Ds/v/kz9UaTd95Iq0HZiXAExTsKkBcTT0PWvQ3jhc50X+ oZHsxD5yk7Q8WON2vYTid3gUnUyMrrIcf8U1muXGF2cj7aOl/ypA0cke/KXRk0RKEK2z eXqjuzpyxOJscwEyqNIZeachyTFQqfyaT/vbTtQbClmMkp0da5jtybeFl+l75DPipxsu Q0ivEcc7nGpZqfvQfbh0tMNesOBxqwJlQsja26JBwJyzS7e/mnJyj1XNOO0YHMBwflcB jshw== X-Gm-Message-State: AOAM530a+48aeu4QhLOfZ5ewtU0mUzO+zcNPUIlITkxL5n8inlPrG50n 8HJIMQQiarw63jan3tk3tWHZ9StGLpABgunM X-Google-Smtp-Source: ABdhPJyaNJcGAIsHwU7QeYvqcEDnfNzEDC2Rm0BNkGRRIks8Iko02KwxOomAg1+HU6zGfe3FbjQWyA== X-Received: by 2002:a05:6e02:501:: with SMTP id d1mr1995505ils.68.1603087203898; Sun, 18 Oct 2020 23:00:03 -0700 (PDT) Original-Received: from ?IPv6:2601:98a:4200:9210:c4f5:d5cd:a594:cb11? ([2601:98a:4200:9210:c4f5:d5cd:a594:cb11]) by smtp.gmail.com with ESMTPSA id b3sm9155739iot.37.2020.10.18.23.00.03 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Oct 2020 23:00:03 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3608.120.23.2.4) Received-SPF: pass client-ip=2607:f8b0:4864:20::132; envelope-from=casouri@gmail.com; helo=mail-il1-x132.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:124565 Archived-At: > On Oct 19, 2020, at 12:59 AM, Yuan Fu wrote: >=20 >=20 >=20 >> On Oct 18, 2020, at 10:23 PM, Eli Zaretskii wrote: >>=20 >>> From: Yuan Fu >>> Date: Sun, 18 Oct 2020 16:06:11 -0400 >>> Cc: help-gnu-emacs@gnu.org >>>=20 >>>>> 1. Is it true that move_it_by_lines regards an image as one = display line? >>>>=20 >>>> Yes. That's why we need vscroll in the first place. >>>=20 >>> Cool. I=E2=80=99m 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? >>=20 >> 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. >=20 > The problem I have is that when I scroll over images they jumps in and = out of the window: (bad-scrolling.mp4) >=20 > >=20 > What I want is to have the images smoothly scrolls in and out: = (good-scrolling.mp4) >=20 > >=20 > Is there already a mean to do that? >=20 > Yuan >=20 Before you ask, I am aware of pixel-scroll-mode, but 1) it doesn=E2=80=99t= handle the case when moving point instead of scrolling, 2) it=E2=80=99s = performance is not very good, 3) scrolling by pixels isn=E2=80=99t = really necessary, scrolling by single lines are fine enough. Yuan=