diff options
| author | Juri Linkov | 2010-04-06 02:38:53 +0300 |
|---|---|---|
| committer | Juri Linkov | 2010-04-06 02:38:53 +0300 |
| commit | 79ce172a464f2d5cced69f97fd86c4e03a0876a9 (patch) | |
| tree | f7347b58dd13fcc423f8b006bb39fe2219892393 /lisp/emulation | |
| parent | 6460e5342cb08578eb2fd22b086373bbc12a11d0 (diff) | |
| download | emacs-79ce172a464f2d5cced69f97fd86c4e03a0876a9.tar.gz emacs-79ce172a464f2d5cced69f97fd86c4e03a0876a9.zip | |
Scrolling commands which does not signal errors at top/bottom.
http://lists.gnu.org/archive/html/emacs-devel/2010-03/msg01452.html
* simple.el (scroll-up-command, scroll-down-command): New commands.
Put property isearch-scroll=t on them.
* bindings.el (global-map): Rebind [prior] from `scroll-down' to
`scroll-down-command' and [next] from `scroll-up' to
`scroll-up-command'.
* emulation/cua-base.el: Put property CUA=move on
`scroll-up-command' and `scroll-down-command'.
(cua--init-keymaps): Remap `scroll-up-command' to `cua-scroll-up'
and `scroll-down-command' to `cua-scroll-down'.
Diffstat (limited to 'lisp/emulation')
| -rw-r--r-- | lisp/emulation/cua-base.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el index 57ea683a1ff..39d3ff785ce 100644 --- a/lisp/emulation/cua-base.el +++ b/lisp/emulation/cua-base.el | |||
| @@ -1440,6 +1440,8 @@ If ARG is the atom `-', scroll upward by nearly full screen." | |||
| 1440 | ;; scrolling | 1440 | ;; scrolling |
| 1441 | (define-key cua-global-keymap [remap scroll-up] 'cua-scroll-up) | 1441 | (define-key cua-global-keymap [remap scroll-up] 'cua-scroll-up) |
| 1442 | (define-key cua-global-keymap [remap scroll-down] 'cua-scroll-down) | 1442 | (define-key cua-global-keymap [remap scroll-down] 'cua-scroll-down) |
| 1443 | (define-key cua-global-keymap [remap scroll-up-command] 'cua-scroll-up) | ||
| 1444 | (define-key cua-global-keymap [remap scroll-down-command] 'cua-scroll-down) | ||
| 1443 | 1445 | ||
| 1444 | (define-key cua--cua-keys-keymap [(control x) timeout] 'kill-region) | 1446 | (define-key cua--cua-keys-keymap [(control x) timeout] 'kill-region) |
| 1445 | (define-key cua--cua-keys-keymap [(control c) timeout] 'copy-region-as-kill) | 1447 | (define-key cua--cua-keys-keymap [(control c) timeout] 'copy-region-as-kill) |
| @@ -1499,6 +1501,7 @@ If ARG is the atom `-', scroll upward by nearly full screen." | |||
| 1499 | move-end-of-line move-beginning-of-line | 1501 | move-end-of-line move-beginning-of-line |
| 1500 | end-of-buffer beginning-of-buffer | 1502 | end-of-buffer beginning-of-buffer |
| 1501 | scroll-up scroll-down | 1503 | scroll-up scroll-down |
| 1504 | scroll-up-command scroll-down-command | ||
| 1502 | up-list down-list backward-up-list | 1505 | up-list down-list backward-up-list |
| 1503 | end-of-defun beginning-of-defun | 1506 | end-of-defun beginning-of-defun |
| 1504 | forward-sexp backward-sexp | 1507 | forward-sexp backward-sexp |