From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nix Newsgroups: gmane.emacs.devel Subject: Re: Proposal to improve the nomenclature of scrolling directions Date: Thu, 08 Nov 2012 18:18:04 +0000 Message-ID: <87liecnelf.fsf@spindle.srvr.nix> References: <87a9uvv6ng.fsf@uwakimon.sk.tsukuba.ac.jp> <87bof9s7cl.fsf@spindle.srvr.nix> <874nl0ov8g.fsf@spindle.srvr.nix> <20635.63115.874182.168553@winooski.ccs.neu.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1352398701 2269 80.91.229.3 (8 Nov 2012 18:18:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Nov 2012 18:18:21 +0000 (UTC) Cc: "Stephen J. Turnbull" , Emacs development discussions , Daniel Hackney , Stefan Monnier , Dani Moncayo To: Eli Barzilay Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 08 19:18:29 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 1TWWgL-0000nt-CO for ged-emacs-devel@m.gmane.org; Thu, 08 Nov 2012 19:18:25 +0100 Original-Received: from localhost ([::1]:41852 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWWgC-0007tP-8A for ged-emacs-devel@m.gmane.org; Thu, 08 Nov 2012 13:18:16 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWWg9-0007sw-Jb for emacs-devel@gnu.org; Thu, 08 Nov 2012 13:18:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TWWg3-00063V-No for emacs-devel@gnu.org; Thu, 08 Nov 2012 13:18:13 -0500 Original-Received: from icebox.esperi.org.uk ([81.187.191.129]:41991 helo=mail.esperi.org.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWWg3-000638-DT for emacs-devel@gnu.org; Thu, 08 Nov 2012 13:18:07 -0500 Original-Received: from spindle.srvr.nix (nix@spindle.srvr.nix [192.168.14.15]) by mail.esperi.org.uk (8.14.5/8.14.5) with ESMTP id qA8II4Dn012955; Thu, 8 Nov 2012 18:18:04 GMT Emacs: it's all fun and games, until somebody tries to edit a file. In-Reply-To: <20635.63115.874182.168553@winooski.ccs.neu.edu> (Eli Barzilay's message of "Thu, 8 Nov 2012 13:14:35 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-DCC-STAT_FI_X86_64_VIRTUAL-Metrics: spindle 1245; Body=6 Fuz1=6 Fuz2=6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 81.187.191.129 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:154743 Archived-At: On 8 Nov 2012, Eli Barzilay verbalised: >> Ah. That's an interesting variation. Controlled by (setq >> scroll-in-place 'unmoving) perhaps? (It should probably hide the >> cursor while it's conceptually offscreen as well, on terminals where >> that's possible, by flipping cursor-type to nil. Alas this would >> make it vanish from non-selected windows too, if >> cursor-in-non-selected-windows is t...) > > (This sounds like something that would be harder to do, since there > are lots of things that relate to the point position which would > break. Maybe a better way to do that is some specific event loop > while scrolling that aborts before any other key is processed, but > that would make the code different. But what do I know...) Yes, you have to do it like that. Point is always on-screen: this assumption is wired into all sorts of places and can never change. But what we *can* do is make point invisible after a motion command (pure motion only, not e.g. isearch, which means scroll-*-command only) that should leave point offscreen, then detect any *other* command (in the same way that e.g. `repeat' does) and jump back to where we were at the start of this chain of scroll commands, emptying the SIP-last-scroll lists and making point visible again. -- NULL && (void)