[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: prevent scroll-lock-mode from scrolling?
From: |
Eli Zaretskii |
Subject: |
Re: prevent scroll-lock-mode from scrolling? |
Date: |
Mon, 20 Jun 2016 17:34:13 +0300 |
> From: lee <lee@yagibdah.de>
> 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.
- Re: prevent scroll-lock-mode from scrolling?, (continued)
- Re: prevent scroll-lock-mode from scrolling?, Eli Zaretskii, 2016/06/17
- Re: prevent scroll-lock-mode from scrolling?, lee, 2016/06/17
- Re: prevent scroll-lock-mode from scrolling?, Dmitry Alexandrov, 2016/06/20
- Re: prevent scroll-lock-mode from scrolling?, lee, 2016/06/20
- Re: prevent scroll-lock-mode from scrolling?, Dmitry Alexandrov, 2016/06/20
- Re: prevent scroll-lock-mode from scrolling?, lee, 2016/06/20
- Re: prevent scroll-lock-mode from scrolling?,
Eli Zaretskii <=
- Re: prevent scroll-lock-mode from scrolling?, lee, 2016/06/20