diff options
| author | Juri Linkov | 2010-04-14 03:33:32 +0300 |
|---|---|---|
| committer | Juri Linkov | 2010-04-14 03:33:32 +0300 |
| commit | 3212974649ca9415a3a4a5197a169a0160a6b36f (patch) | |
| tree | c4190e720ab70aa0950e0193c7a1d5fb7c3032cb /src | |
| parent | 9013a7f82ede2a309498ae62ac22dce4791b3f4a (diff) | |
| download | emacs-3212974649ca9415a3a4a5197a169a0160a6b36f.tar.gz emacs-3212974649ca9415a3a4a5197a169a0160a6b36f.zip | |
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 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/window.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e4130a64838..82484b105be 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,11 @@ | |||
| 1 | 2010-04-14 Juri Linkov <juri@jurta.org> | 1 | 2010-04-14 Juri Linkov <juri@jurta.org> |
| 2 | 2 | ||
| 3 | * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to | ||
| 4 | `scroll-up-command' and `M-v' from `scroll-down' to | ||
| 5 | `scroll-down-command'. | ||
| 6 | |||
| 7 | 2010-04-14 Juri Linkov <juri@jurta.org> | ||
| 8 | |||
| 3 | * window.c (Vscroll_preserve_screen_position_commands): New variable | 9 | * window.c (Vscroll_preserve_screen_position_commands): New variable |
| 4 | with the default value as the list of Qscroll_down and Qscroll_up. | 10 | with the default value as the list of Qscroll_down and Qscroll_up. |
| 5 | (window_scroll_pixel_based, window_scroll_line_based): Search the | 11 | (window_scroll_pixel_based, window_scroll_line_based): Search the |
diff --git a/src/window.c b/src/window.c index 2757b98ddd9..b9683fbbca8 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -7391,9 +7391,9 @@ keys_of_window () | |||
| 7391 | initial_define_key (control_x_map, '<', "scroll-left"); | 7391 | initial_define_key (control_x_map, '<', "scroll-left"); |
| 7392 | initial_define_key (control_x_map, '>', "scroll-right"); | 7392 | initial_define_key (control_x_map, '>', "scroll-right"); |
| 7393 | 7393 | ||
| 7394 | initial_define_key (global_map, Ctl ('V'), "scroll-up"); | 7394 | initial_define_key (global_map, Ctl ('V'), "scroll-up-command"); |
| 7395 | initial_define_key (meta_map, Ctl ('V'), "scroll-other-window"); | 7395 | initial_define_key (meta_map, Ctl ('V'), "scroll-other-window"); |
| 7396 | initial_define_key (meta_map, 'v', "scroll-down"); | 7396 | initial_define_key (meta_map, 'v', "scroll-down-command"); |
| 7397 | } | 7397 | } |
| 7398 | 7398 | ||
| 7399 | /* arch-tag: 90a9c576-0590-48f1-a5f1-6c96a0452d9f | 7399 | /* arch-tag: 90a9c576-0590-48f1-a5f1-6c96a0452d9f |