* 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
--- 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
[EMAIL PROTECTED] 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
--- 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 [EMAIL PROTECTED], 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
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to