From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: prevent scroll-lock-mode from scrolling? Date: Fri, 17 Jun 2016 09:47:24 +0300 Message-ID: <83eg7wcnwj.fsf@gnu.org> References: <871t3waaa8.fsf@heimdali.yagibdah.de> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1466146899 3694 80.91.229.3 (17 Jun 2016 07:01:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jun 2016 07:01:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 17 09:01:39 2016 Return-path: Envelope-to: geh-help-gnu-emacs@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 1bDnmc-0006th-HA for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Jun 2016 09:01:38 +0200 Original-Received: from localhost ([::1]:54359 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDnmb-00069H-E2 for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Jun 2016 03:01:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDnXx-0000Iy-D6 for help-gnu-emacs@gnu.org; Fri, 17 Jun 2016 02:46:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDnXt-0002Ad-48 for help-gnu-emacs@gnu.org; Fri, 17 Jun 2016 02:46:28 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60021) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDnXt-0002AX-1F for help-gnu-emacs@gnu.org; Fri, 17 Jun 2016 02:46:25 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4143 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bDnXr-0004vI-CB for help-gnu-emacs@gnu.org; Fri, 17 Jun 2016 02:46:23 -0400 In-reply-to: <871t3waaa8.fsf@heimdali.yagibdah.de> (message from lee on Fri, 17 Jun 2016 03:12:15 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:110479 Archived-At: > From: lee > Date: Fri, 17 Jun 2016 03:12:15 +0200 > > is there a way to prevent the point from moving up or down when > scroll-lock-mode is enabled and the contents of the buffer have been > scrolled so far as for the first or the last line to reach the top or > the bottom of the frame, respectively? > > It pretty much defeats the idea of this mode when the point moves > nonetheless after scrolling for a bit, since I would use this mode to > keep the point in its very place when scrolling. AFAIU, that's exactly the point of this minor mode. If you don't like it, I suggest not to turn on the mode. > Thinking of this, is there a kinda complementary mode, or an option, to > scroll-lock-mode, which would move the point together with the contents > of the buffer when I scroll? That's what happens by default, so I don't think I understand what are you looking for. Perhaps consider telling more about the feature you want to have.