From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: Re: Pageup/down with fixed cursor position Date: Fri, 10 Mar 2017 09:38:55 -0900 Organization: AkWebsoft Message-ID: <20170310183855.GQ2502@mail.akwebsoft.com> References: <20170310164827.GP2502@mail.akwebsoft.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1489171168 31145 195.159.176.226 (10 Mar 2017 18:39:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 10 Mar 2017 18:39:28 +0000 (UTC) User-Agent: Mutt/1.7.0 (2016-08-17) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 10 19:39:21 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmPRg-00074k-7z for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Mar 2017 19:39:20 +0100 Original-Received: from localhost ([::1]:40506 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmPRk-0003jD-Ku for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Mar 2017 13:39:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54660) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmPRL-0003j8-8X for help-gnu-emacs@gnu.org; Fri, 10 Mar 2017 13:39:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmPRI-0002jE-5s for help-gnu-emacs@gnu.org; Fri, 10 Mar 2017 13:38:59 -0500 Original-Received: from tjohnson.mtaonline.net ([64.4.232.191]:47152) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmPRH-0002jA-U8 for help-gnu-emacs@gnu.org; Fri, 10 Mar 2017 13:38:56 -0500 Original-Received: by linus.johnson.com (Postfix, from userid 1000) id 6A7C92004B7; Fri, 10 Mar 2017 09:38:55 -0900 (AKST) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.4.232.191 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112521 Archived-At: * Kaushal Modi [170310 08:01]: > Try setting scroll-preserve-screen-position to t. Oh! And duh! That's it. Thank you very much. cheers - tj - > (I really think that should be the default.) > > On Fri, Mar 10, 2017 at 11:49 AM Tim Johnson wrote: > > > GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) > > Ubuntu 14.04 > > > > I'd like to retain my cursor position (when possible) relative to > > top/bottom of window when using C-v and M-v > > > > I'm unable to deduce such a method from the documentation for > > 'scroll-up-command and 'scroll-down-command > > > > Any ideas are welcome. Keywords are probably all I need. > > > > thanks > > -- > > Tim > > http://www.akwebsoft.com, http://www.tj49.com > > > > -- > > Kaushal Modi -- Tim http://www.akwebsoft.com, http://www.tj49.com