diff options
author | Juri Linkov <juri@jurta.org> | 2010-04-06 02:44:24 +0300 |
---|---|---|
committer | Juri Linkov <juri@jurta.org> | 2010-04-06 02:44:24 +0300 |
commit | 5a97d2da2c494cad346ee18dea5e207420c5a845 (patch) | |
tree | 90e0f340ebacda6e379cbc48d794878980658a2a /lisp/simple.el | |
parent | 79ce172a464f2d5cced69f97fd86c4e03a0876a9 (diff) | |
download | emacs-5a97d2da2c494cad346ee18dea5e207420c5a845.tar.gz |
Scrolling commands which scroll a line instead of full screen..
http://lists.gnu.org/archive/html/emacs-devel/2010-03/msg01452.html
* simple.el (scroll-up-line, scroll-down-line): New commands.
Put property isearch-scroll=t on them.
* emulation/ws-mode.el (scroll-down-line, scroll-up-line):
Remove commands.
Diffstat (limited to 'lisp/simple.el')
-rw-r--r-- | lisp/simple.el | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 7616d19057a..66ea9ebebd9 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -4800,6 +4800,26 @@ If ARG is the atom `-', scroll upward by nearly full screen." (put 'scroll-down-command 'isearch-scroll t) +;;; Scrolling commands which scroll a line instead of full screen. + +(defun scroll-up-line (&optional arg) + "Scroll text of selected window upward ARG lines; or one line if no ARG. +If ARG is omitted or nil, scroll upward by one line. +This is different from `scroll-up-command' that scrolls a full screen." + (interactive "p") + (scroll-up (or arg 1))) + +(put 'scroll-up-line 'isearch-scroll t) + +(defun scroll-down-line (&optional arg) + "Scroll text of selected window down ARG lines; or one line if no ARG. +If ARG is omitted or nil, scroll down by one line. +This is different from `scroll-down-command' that scrolls a full screen." + (interactive "p") + (scroll-down (or arg 1))) + +(put 'scroll-down-line 'isearch-scroll t) + (defun scroll-other-window-down (lines) "Scroll the \"other window\" down. |