From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Proposal to improve the nomenclature of scrolling directions Date: Sat, 10 Nov 2012 13:38:35 +0200 Message-ID: <83r4o1y9fo.fsf@gnu.org> References: <201211080338.qA83c7NY006393@winooski.ccs.neu.edu> <20635.16010.769769.433949@winooski.ccs.neu.edu> <509CD1EF.8070701@gmx.at> <509E3504.1050500@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1352547517 19530 80.91.229.3 (10 Nov 2012 11:38:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Nov 2012 11:38:37 +0000 (UTC) Cc: eli@barzilay.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 10 12:38:47 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TX9Of-00023d-TJ for ged-emacs-devel@m.gmane.org; Sat, 10 Nov 2012 12:38:46 +0100 Original-Received: from localhost ([::1]:43634 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TX9OW-0002jM-Dv for ged-emacs-devel@m.gmane.org; Sat, 10 Nov 2012 06:38:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:32915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TX9OR-0002ib-M3 for emacs-devel@gnu.org; Sat, 10 Nov 2012 06:38:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TX9OO-0001Ak-KG for emacs-devel@gnu.org; Sat, 10 Nov 2012 06:38:31 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:61210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TX9OO-0001AV-BQ for emacs-devel@gnu.org; Sat, 10 Nov 2012 06:38:28 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MD900900SBBSC00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Sat, 10 Nov 2012 13:38:26 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MD9009D6SC2JMM0@a-mtaout20.012.net.il>; Sat, 10 Nov 2012 13:38:26 +0200 (IST) In-reply-to: <509E3504.1050500@gmx.at> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:154790 Archived-At: > Date: Sat, 10 Nov 2012 12:05:40 +0100 > From: martin rudalics > Cc: Eli Barzilay , emacs-devel@gnu.org > > AFAICT scrolling is partially implemented in the scroll functions and > partially in the display engine. True. > For me, implementing a thing like > `scroll-in-place' means to leave the scroll functions mainly untouched - > we'd just record the original window-point and window-start positions > there. Then we need a `scroll-point' overlay for the "line is too > short" case (Kim Storm has implemented a similar feature in his > rectangle code) and adjust it in a `post-display' hook - the one you've > been asking for in the past decade. Also, that `post-display' hook > would have to optionally handle the case where scrolling gets back to > the original point and the user wants the window-start position to match > the position it had before the scrolling sequence started. You are talking about a solution that would work around the current code in creative ways. I would suggest changing the code instead. Changing the code will necessarily involve touching the scroll functions, because currently they move point to fit in the window.