From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail
From: Eli Zaretskii <eliz@gnu.org>
Newsgroups: gmane.emacs.bugs
Subject: bug#16840: 24.3.50;
 Jerky motion and up/down asymmetry scrolling images in Eww
Date: Fri, 27 Sep 2019 17:29:32 +0300
Message-ID: <83zhipizhv.fsf@gnu.org>
References: <874n3rj4ng.fsf@moondust.localdomain> <83eh2v4kx6.fsf@gnu.org>
 <87y513rrue.fsf_-_@moondust.localdomain> <83fvnb2fbf.fsf@gnu.org>
 <87r3ib3rdi.fsf@gnus.org> <831tablzxh.fsf@gnu.org>
 <87h9j61nb1.fsf@gnus.org> <83fuyqlat2.fsf@gnu.org>
 <87ziwynyim.fsf@moondust.localdomain> <83ziwyjo6p.fsf@gnu.org>
 <87ftkjngf9.fsf@gnus.org> <83h84zkmof.fsf@gnu.org>
 <87muerm0v0.fsf@gnus.org> <83ftkjkkmc.fsf@gnu.org>
 <8736gjkk9i.fsf@gnus.org> <83blv6lxhf.fsf@gnu.org>
 <87tv8yj48c.fsf@gnus.org> <837e5ulwmt.fsf@gnu.org>
 <87muepomk0.fsf@gnus.org>
Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226";
	logging-data="183747"; mail-complaints-to="usenet@blaine.gmane.org"
Cc: nljlistbox2@gmail.com, 16840@debbugs.gnu.org
To: Lars Ingebrigtsen <larsi@gnus.org>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 27 18:08:39 2019
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geb-bug-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.89)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1iDsnN-000lfO-8q
	for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Sep 2019 18:08:37 +0200
Original-Received: from localhost ([::1]:52916 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1iDsnL-0002Lk-E0
	for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Sep 2019 12:08:35 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48631)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1iDrGy-0007Kj-3x
 for bug-gnu-emacs@gnu.org; Fri, 27 Sep 2019 10:31:05 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1iDrGw-0005mi-7y
 for bug-gnu-emacs@gnu.org; Fri, 27 Sep 2019 10:31:04 -0400
Original-Received: from debbugs.gnu.org ([209.51.188.43]:39463)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1iDrGw-0005md-4L
 for bug-gnu-emacs@gnu.org; Fri, 27 Sep 2019 10:31:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1iDrGv-0001py-SZ
 for bug-gnu-emacs@gnu.org; Fri, 27 Sep 2019 10:31:01 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Eli Zaretskii <eliz@gnu.org>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Fri, 27 Sep 2019 14:31:01 +0000
Resent-Message-ID: <handler.16840.B16840.15695946113611@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 16840
X-GNU-PR-Package: emacs
Original-Received: via spool by 16840-submit@debbugs.gnu.org id=B16840.15695946113611
 (code B ref 16840); Fri, 27 Sep 2019 14:31:01 +0000
Original-Received: (at 16840) by debbugs.gnu.org; 27 Sep 2019 14:30:11 +0000
Original-Received: from localhost ([127.0.0.1]:48284 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1iDrG6-0000vq-Rz
 for submit@debbugs.gnu.org; Fri, 27 Sep 2019 10:30:11 -0400
Original-Received: from eggs.gnu.org ([209.51.188.92]:39380)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@gnu.org>) id 1iDrG5-0000pD-Ay
 for 16840@debbugs.gnu.org; Fri, 27 Sep 2019 10:30:09 -0400
Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42504)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@gnu.org>)
 id 1iDrFz-0005Qg-V8; Fri, 27 Sep 2019 10:30:04 -0400
Original-Received: from [176.228.60.248] (port=2653 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@gnu.org>)
 id 1iDrFv-0007Bx-MC; Fri, 27 Sep 2019 10:30:02 -0400
In-reply-to: <87muepomk0.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 
 27 Sep 2019 16:12:31 +0200)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 209.51.188.43
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
 the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: "bug-gnu-emacs"
 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
Xref: news.gmane.org gmane.emacs.bugs:167393
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/167393>

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: nljlistbox2@gmail.com,  16840@debbugs.gnu.org
> Date: Fri, 27 Sep 2019 16:12:31 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Your code generates an image whose height is smaller than the window
> > height, and in that case Emacs scrolls the entire image off the window
> > in one go, because all of the image was already visible once.
> 
> Oh, the
> 
>   (set-frame-height (window-frame (selected-window)) 1000 nil t)
> 
> bit didn't work?  That was supposed to ensure that the window was
> shorter than the image...

Evidently, it didn't.

> > If I decrease the frame height so that the image becomes taller than
> > the window, the image is scrolled partially until you had a chance to
> > see all of it, then the rest is scrolled away in one large step.  This
> > is exactly how the code in simple.el is designed and implemented, so I
> > see no bug here.
> 
> It might be how it's designed, but it's (as you can see from this bug
> report) behaviour that people find surprising.

Maybe they don't understand why this was designed like that?  I
explained the idea, and it makes sense if you consider the use case of
text displayed with very large font.

If that is still not good enough, you and they are welcome to get the
hands dirty in the relevant parts of simple.el.  I don't plan on doing
that any time soon, having stepped through that code and hacked it too
much for one lifetime.