[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: scroll-top-bottom
From: |
Juri Linkov |
Subject: |
Re: scroll-top-bottom |
Date: |
Sun, 21 Mar 2010 02:14:14 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) |
>> This feature is implemented by CUA mode, but it would be very useful
>> for users who don't use CUA. To support it in the core, I've implemented
>> a new user option `scroll-top-bottom' (that defines the scrolling behavior
>> at the top/bottom of the buffer).
>
> When scrolling by a page at a time, this makes sense, but when scrolling
> only by a single line at a time, it's very odd for point to suddenly
> jump several lines at a time. So I think the behavior should be refined
> so it doesn't just "move to BEGV or ZV" but instead "when scrolling by
> N lines can't be done, move by N lines instead".
And `cua-scroll-up' and `cua-scroll-down' have the same problem.
I'll try to create new commands based on `cua-scroll-up' and
`cua-scroll-down' but without these problems.
> And yes, I think this would be better done at the Lisp level by
> introducing new commands so it doesn't affect other code that calls
> scroll-(up|down).
I see what you mean. These new commands should be a wrapper
like `next-line' for `forward-line'. This will allow to bring
scrolling closer to point-moving commands feature-wise,
e.g. scrolling could also respect the value `goal-column'
like `next-line' does.
--
Juri Linkov
http://www.jurta.org/emacs/
- Re: delete-selection-mode (was: Put scroll-bar on right by default on UNIX.), (continued)
- Re: delete-selection-mode (was: Put scroll-bar on right by default on UNIX.), Lennart Borgman, 2010/03/16
- RE: delete-selection-mode (was: Put scroll-bar on right by default onUNIX.), Drew Adams, 2010/03/17
- Re: delete-selection-mode, Juri Linkov, 2010/03/17
- RE: delete-selection-mode, Drew Adams, 2010/03/17
- Re: delete-selection-mode, Stefan Monnier, 2010/03/17
- Re: delete-selection-mode, Chong Yidong, 2010/03/18
- Re: delete-selection-mode, Johan Bockgård, 2010/03/18
- Re: delete-selection-mode, Juri Linkov, 2010/03/18
- scroll-top-bottom (was: delete-selection-mode), Juri Linkov, 2010/03/19
- Re: scroll-top-bottom, Stefan Monnier, 2010/03/20
- Re: scroll-top-bottom,
Juri Linkov <=
- Scrolling commands (was: scroll-top-bottom), Juri Linkov, 2010/03/30
- Re: Scrolling commands (was: scroll-top-bottom), Juanma Barranquero, 2010/03/30
- Re: Scrolling commands, Juri Linkov, 2010/03/31
- Re: Scrolling commands, Juanma Barranquero, 2010/03/31
- Re: delete-selection-mode, Juri Linkov, 2010/03/18
- Permanent shift-select-mode (was: delete-selection-mode), Juri Linkov, 2010/03/20
- Re: Permanent shift-select-mode, Stefan Monnier, 2010/03/21
- Re: delete-selection-mode, David Kastrup, 2010/03/17
- AW: delete-selection-mode, Berndl, Klaus, 2010/03/17
- Re: AW: delete-selection-mode, Andreas Roehler, 2010/03/17