From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Redisplay resets vscroll when window start changes Date: Wed, 17 Nov 2021 15:40:39 -0500 Message-ID: References: <87k0h9pp7t.fsf.ref@yahoo.com> <87k0h9pp7t.fsf@yahoo.com> <83r1bhsdsn.fsf@gnu.org> <87tugdnf1x.fsf@yahoo.com> <831r3g2rhe.fsf@gnu.org> <87tugcuuoz.fsf@yahoo.com> <87o86kuuek.fsf@yahoo.com> <83r1bg1ay4.fsf@gnu.org> <87zgq4te32.fsf@yahoo.com> <83mtm41afl.fsf@gnu.org> <875yssufhf.fsf@md5i.com> <87czmztynn.fsf@yahoo.com> <83wnl7zcej.fsf@gnu.org> <83o86izyrt.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14319"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: luangruo@yahoo.com, mwd@md5i.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 17 21:41:56 2021 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 1mnRki-0003Vz-Cy for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Nov 2021 21:41:56 +0100 Original-Received: from localhost ([::1]:57700 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnRkg-0004AN-C3 for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Nov 2021 15:41:54 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnRjb-0002dz-Up for emacs-devel@gnu.org; Wed, 17 Nov 2021 15:40:48 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:38505) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnRja-0007gy-Ax; Wed, 17 Nov 2021 15:40:47 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id E415D801F2; Wed, 17 Nov 2021 15:40:43 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 2D1DC8043C; Wed, 17 Nov 2021 15:40:42 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1637181642; bh=681wSbOHfbwHzTOzluKDGsE8JUAadFj0kRp+tgRu+B0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=RS9OvG0hk9xULO4yQWnwGz1fIII5rUXmqJNJ3I0eWzKmIpNYeT7wVRW8HjGKED4Zf tIhFDWWVAxKpZig2ff6NXq0zU0vkDr3wXrYJGLdvHmLtWZ34a0Jr2lhhlKGsuXYXBw DgaaX4uKUqTeV6pIi2sAl8Nf5Cw3ACwWct0px+BDQ3H4phAvfKejOKsnve8tnz7GIg n1s/ZaXgPvKsNoIkjlMBQzUStFpPU0CgAErM3Lqf6nTFIcCkzgb9wt+K3vuJP2UnEH SwIzVTG3aexhFTlBqijIL3hrO5JsqA1Ww93eenx0C7gZys56BuN/tk3eJwrgFEhqsg UwiHFACPW2Bdw== Original-Received: from ceviche (modemcable124.78-161-184.mc.videotron.ca [184.161.78.124]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 0CF81120A2F; Wed, 17 Nov 2021 15:40:42 -0500 (EST) In-Reply-To: <83o86izyrt.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 17 Nov 2021 15:40:06 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:279643 Archived-At: >> I'm still not sure how/why line-move should affect vscroll. > Because it needs to handle the case of scrolling through a very tall > image. [...] >> Would there be a way to distinguish the case where line-move can return >> a correct result without changing vscroll, from the case where it does >> require changing vscroll in order to find its answer? > I don't think I understand the question. The question can be rephrased as: could `line-move` only reset vscroll in the case where we're scrolling through a very tall image? Stefan