diff options
author | Juri Linkov <juri@jurta.org> | 2010-04-14 03:33:32 +0300 |
---|---|---|
committer | Juri Linkov <juri@jurta.org> | 2010-04-14 03:33:32 +0300 |
commit | 3212974649ca9415a3a4a5197a169a0160a6b36f (patch) | |
tree | c4190e720ab70aa0950e0193c7a1d5fb7c3032cb /lisp | |
parent | 9013a7f82ede2a309498ae62ac22dce4791b3f4a (diff) | |
download | emacs-3212974649ca9415a3a4a5197a169a0160a6b36f.tar.gz |
Bind `C-v' to `scroll-up-command' and `M-v' to `scroll-down-command'.
http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00403.html
* window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
`scroll-up-command' and `M-v' from `scroll-down' to
`scroll-down-command'.
* tutorial.el (tutorial--default-keys): Rebind `C-v' to
`scroll-up-command' and `M-v' to `scroll-down-command'.
* emulation/cua-rect.el (cua--init-rectangles):
* forms.el (forms--change-commands):
* image-mode.el (image-mode-map):
Remap scroll-down-command and scroll-up-command
in addition to scroll-down and scroll-up.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/ChangeLog | 11 | ||||
-rw-r--r-- | lisp/emulation/cua-rect.el | 2 | ||||
-rw-r--r-- | lisp/forms.el | 4 | ||||
-rw-r--r-- | lisp/image-mode.el | 2 | ||||
-rw-r--r-- | lisp/tutorial.el | 4 |
5 files changed, 20 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8baac73bd9a..01bfbf55434 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,16 @@ 2010-04-14 Juri Linkov <juri@jurta.org> + * tutorial.el (tutorial--default-keys): Rebind `C-v' to + `scroll-up-command' and `M-v' to `scroll-down-command'. + + * emulation/cua-rect.el (cua--init-rectangles): + * forms.el (forms--change-commands): + * image-mode.el (image-mode-map): + Remap scroll-down-command and scroll-up-command + in addition to scroll-down and scroll-up. + +2010-04-14 Juri Linkov <juri@jurta.org> + * mwheel.el (scroll-preserve-screen-position-commands): Add mwheel-scroll to this list of commands. diff --git a/lisp/emulation/cua-rect.el b/lisp/emulation/cua-rect.el index 4398b5aa1af..4ac8ce58b3e 100644 --- a/lisp/emulation/cua-rect.el +++ b/lisp/emulation/cua-rect.el @@ -1432,6 +1432,8 @@ With prefix arg, indent to that column." (define-key cua--rectangle-keymap [remap beginning-of-buffer] 'cua-resize-rectangle-top) (define-key cua--rectangle-keymap [remap scroll-down] 'cua-resize-rectangle-page-up) (define-key cua--rectangle-keymap [remap scroll-up] 'cua-resize-rectangle-page-down) + (define-key cua--rectangle-keymap [remap scroll-down-command] 'cua-resize-rectangle-page-up) + (define-key cua--rectangle-keymap [remap scroll-up-command] 'cua-resize-rectangle-page-down) (define-key cua--rectangle-keymap [remap delete-backward-char] 'cua-delete-char-rectangle) (define-key cua--rectangle-keymap [remap backward-delete-char] 'cua-delete-char-rectangle) diff --git a/lisp/forms.el b/lisp/forms.el index acb86dcc194..50f7ac9f506 100644 --- a/lisp/forms.el +++ b/lisp/forms.el @@ -1407,7 +1407,9 @@ Commands: Equivalent keys in read-only mode: (if forms-forms-scroll (progn (local-set-key [remap scroll-up] 'forms-next-record) - (local-set-key [remap scroll-down] 'forms-prev-record))) + (local-set-key [remap scroll-down] 'forms-prev-record) + (local-set-key [remap scroll-up-command] 'forms-next-record) + (local-set-key [remap scroll-down-command] 'forms-prev-record))) ;; ;; beginning-of-buffer -> forms-first-record ;; end-of-buffer -> forms-end-record diff --git a/lisp/image-mode.el b/lisp/image-mode.el index 6169fa4cb71..cd292a8fa3b 100644 --- a/lisp/image-mode.el +++ b/lisp/image-mode.el @@ -302,6 +302,8 @@ This variable is used to display the current image type in the mode line.") (define-key map [remap next-line] 'image-next-line) (define-key map [remap scroll-up] 'image-scroll-up) (define-key map [remap scroll-down] 'image-scroll-down) + (define-key map [remap scroll-up-command] 'image-scroll-up) + (define-key map [remap scroll-down-command] 'image-scroll-down) (define-key map [remap move-beginning-of-line] 'image-bol) (define-key map [remap move-end-of-line] 'image-eol) (define-key map [remap beginning-of-buffer] 'image-bob) diff --git a/lisp/tutorial.el b/lisp/tutorial.el index de7f7ab4a3c..0ac315ac6dc 100644 --- a/lisp/tutorial.el +++ b/lisp/tutorial.el @@ -218,8 +218,8 @@ LEFT and RIGHT are the elements to compare." (save-buffers-kill-terminal [?\C-x ?\C-c]) ;; * SUMMARY - (scroll-up [?\C-v]) - (scroll-down [?\M-v]) + (scroll-up-command [?\C-v]) + (scroll-down-command [?\M-v]) (recenter-top-bottom [?\C-l]) ;; * BASIC CURSOR CONTROL |