From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Angeli Newsgroups: gmane.emacs.devel Subject: Re: Scroll lock Date: Thu, 30 Jun 2005 10:54:27 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1120123240 22872 80.91.229.2 (30 Jun 2005 09:20:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Jun 2005 09:20:40 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 30 11:20:40 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DnvDV-00063i-UK for ged-emacs-devel@m.gmane.org; Thu, 30 Jun 2005 11:20:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DnvLj-00025U-IK for ged-emacs-devel@m.gmane.org; Thu, 30 Jun 2005 05:28:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dnuq0-0004re-GX for emacs-devel@gnu.org; Thu, 30 Jun 2005 04:56:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dnupq-0004qw-K6 for emacs-devel@gnu.org; Thu, 30 Jun 2005 04:55:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dnupi-0004pW-MD for emacs-devel@gnu.org; Thu, 30 Jun 2005 04:55:45 -0400 Original-Received: from [134.96.7.31] (helo=justus.rz.uni-saarland.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DnutO-00011D-W6; Thu, 30 Jun 2005 04:59:31 -0400 Original-Received: from iwi-gate.iwi.uni-sb.de (iwi-gate.iwi.uni-sb.de [134.96.72.13]) by justus.rz.uni-saarland.de (8.12.10/8.12.10) with ESMTP id j5U8sSr55583422; Thu, 30 Jun 2005 10:54:28 +0200 (CEST) Original-Received: from [134.96.72.190] (helo=neutrino.iwi.uni-sb.de) by iwi-gate.iwi.uni-sb.de with esmtp (Exim 4.43 (FreeBSD)) id 1DnuoG-0007M5-Qg; Thu, 30 Jun 2005 10:54:12 +0200 Original-Received: from angeli by neutrino.iwi.uni-sb.de with local (Exim 4.51) id 1DnuoV-0005dT-7P; Thu, 30 Jun 2005 10:54:27 +0200 Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Wed, 29 Jun 2005 21:44:32 -0400") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-IWi-MailScanner-Information: Please contact the ISP for more information X-IWi-MailScanner: Found to be clean X-IWi-MailScanner-SpamCheck: not spam, SpamAssassin (score=0, required 5, autolearn=disabled) X-MailScanner-From: angeli@iwi.uni-sb.de X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.1 (justus.rz.uni-saarland.de [134.96.7.31]); Thu, 30 Jun 2005 10:54:28 +0200 (CEST) X-AntiVirus: checked by AntiVir Milter 1.0.6; AVE 6.31.0.7; VDF 6.31.0.126 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:39946 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39946 --=-=-= * Richard M. Stallman (2005-06-30) writes: > Your window.c change is simple enough that we could simply install it. > So I did. Thanks. The change should be reflected in the documentation as well. I attached patches for man/display.texi and lispref/windows.texi. (Improvements of wording welcome.) The description of `scroll-preserve-screen-position' in man/display.texi is not 100% accurate because it tells you that the vertical position of point is preserved when scrolling by full screens while it is preserved with any scroll command which would move point out of the window. But maybe the description should stay like this in order to avoid making it too complicated. > The scroll-lock.el file is larger and would need legal papers. I just sent a mail to the copyright clerk requesting a copyright assignment for Emacs. > I don't like the idea of using up C-x % for this, however. If users > really want a command to toggle this mode, I would not object, but I > tend to think they won't want to toggle it that often. I think > they'd rather have this enabled in certain major modes. Hm, I imagine that personally I'd want it to toggle interactively in arbitrary modes as well. For this, a key binding would be nice to have. But it probably would not be a problem to tell users that they can define a key for it themselves. I'll think about this and also about if and how to handle it as a global or local minor mode ... -- Ralf --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=display.texi.patch --- display.texi 29 Jun 2005 12:42:38 +0200 1.95 +++ display.texi 30 Jun 2005 10:36:52 +0200 @@ -536,6 +536,10 @@ started. However, this mode is inconvenient when you move to the next screen in order to move point to the text there. + Setting @code{scroll-preserve-screen-position} to the special symbol +@code{always} will keep the vertical position of point for any scrolling +command, not just for those scrolling by full screens. + Another way to do scrolling is with @kbd{C-l} with a numeric argument. @kbd{C-l} does not clear the screen when given an argument; it only scrolls the selected window. With a positive argument @var{n}, it repositions text --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=windows.texi.patch --- windows.texi 29 Jun 2005 12:42:37 +0200 1.83 +++ windows.texi 30 Jun 2005 10:36:43 +0200 @@ -1524,8 +1524,10 @@ @defopt scroll-preserve-screen-position If this option is non-@code{nil}, the scroll functions move point so -that the vertical position of the cursor is unchanged, when that is -possible. +that the vertical position of the cursor is unchanged. The position is +kept only if the scroll command moved point vertically out of the +window. If the position should be kept with any type of scroll command, +set the variable to the special symbol @code{always}. @end defopt @defopt next-screen-context-lines --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --=-=-=--