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: Mon, 20 Jun 2016 17:34:13 +0300 Message-ID: <83bn2w7wuy.fsf@gnu.org> References: <871t3waaa8.fsf@heimdali.yagibdah.de> <83eg7wcnwj.fsf@gnu.org> <8760t7l8cg.fsf@heimdali.yagibdah.de> <834m8qc2nb.fsf@gnu.org> <87mvmgpwf9.fsf@heimdali.yagibdah.de> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1466434658 17650 80.91.229.3 (20 Jun 2016 14:57:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jun 2016 14:57:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 20 16:57:33 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 1bF0do-0005OK-DN for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Jun 2016 16:57:32 +0200 Original-Received: from localhost ([::1]:44147 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bF0dn-0004u3-Hp for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Jun 2016 10:57:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bF0IB-0006kO-Ov for help-gnu-emacs@gnu.org; Mon, 20 Jun 2016 10:35:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bF0I8-0004PE-0s for help-gnu-emacs@gnu.org; Mon, 20 Jun 2016 10:35:10 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bF0I7-0004Nl-UG for help-gnu-emacs@gnu.org; Mon, 20 Jun 2016 10:35:07 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3420 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bF0I6-0002RW-1e for help-gnu-emacs@gnu.org; Mon, 20 Jun 2016 10:35:06 -0400 In-reply-to: <87mvmgpwf9.fsf@heimdali.yagibdah.de> (message from lee on Mon, 20 Jun 2016 01:54:02 +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:110530 Archived-At: > From: lee > Date: Mon, 20 Jun 2016 01:54:02 +0200 > > I turn on scroll-lock-mode to keep the point where it is and don't want > it to move. Why would I expect it to move nonetheless? Because some buffer positions would be unreachable otherwise. > I was assuming that 'point' means the position where letters appear when > I type, i. e. where the cursor is. No, point is _buffer_ position where insertion happens. It isn't a screen position. > > That might make sense in some use cases of view-mode (and even then > > might get in the way), but not in a general-purpose editable buffer, > > IMO. It means some buffer positions are unreachable by > > vertical-motion commands. > > They won't be unreachable because you can always turn off > scroll-lock-mode and move the cursor around. Yes, but turning the mode on and off is an annoyance. > Can you explain to me why the cursor remains at its position /on the > screen/ while I'm scrolling with scroll-lock-mode enabled all the time > like it should --- and then suddenly moves when the top or bottom of the > buffer contents come into view? See above: Emacs attempts to let you reach the buffer text below the cursor position. > Scroll-lock-mode does that to me. I understand; this just means scroll-lock-mode is not doing what you want, it's doing something else. Maybe someone will extend it to do what you want, or maybe there's already a similar mode that does.