diff options
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/window.c b/src/window.c index ba8682eed7c..5e78aa400b5 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -8100,6 +8100,18 @@ and scrolling positions. */) | |||
| 8100 | return Qt; | 8100 | return Qt; |
| 8101 | return Qnil; | 8101 | return Qnil; |
| 8102 | } | 8102 | } |
| 8103 | |||
| 8104 | DEFUN ("window-bump-use-time", Fwindow_bump_use_time, | ||
| 8105 | Swindow_bump_use_time, 1, 1, 0, | ||
| 8106 | doc: /* Mark WINDOW as having been recently used. */) | ||
| 8107 | (Lisp_Object window) | ||
| 8108 | { | ||
| 8109 | struct window *w = decode_valid_window (window); | ||
| 8110 | |||
| 8111 | w->use_time = ++window_select_count; | ||
| 8112 | return Qnil; | ||
| 8113 | } | ||
| 8114 | |||
| 8103 | 8115 | ||
| 8104 | 8116 | ||
| 8105 | static void init_window_once_for_pdumper (void); | 8117 | static void init_window_once_for_pdumper (void); |
| @@ -8573,6 +8585,7 @@ displayed after a scrolling operation to be somewhat inaccurate. */); | |||
| 8573 | defsubr (&Swindow_vscroll); | 8585 | defsubr (&Swindow_vscroll); |
| 8574 | defsubr (&Sset_window_vscroll); | 8586 | defsubr (&Sset_window_vscroll); |
| 8575 | defsubr (&Scompare_window_configurations); | 8587 | defsubr (&Scompare_window_configurations); |
| 8588 | defsubr (&Swindow_bump_use_time); | ||
| 8576 | defsubr (&Swindow_list); | 8589 | defsubr (&Swindow_list); |
| 8577 | defsubr (&Swindow_list_1); | 8590 | defsubr (&Swindow_list_1); |
| 8578 | defsubr (&Swindow_prev_buffers); | 8591 | defsubr (&Swindow_prev_buffers); |
| @@ -8583,14 +8596,3 @@ displayed after a scrolling operation to be somewhat inaccurate. */); | |||
| 8583 | defsubr (&Swindow_parameter); | 8596 | defsubr (&Swindow_parameter); |
| 8584 | defsubr (&Sset_window_parameter); | 8597 | defsubr (&Sset_window_parameter); |
| 8585 | } | 8598 | } |
| 8586 | |||
| 8587 | void | ||
| 8588 | keys_of_window (void) | ||
| 8589 | { | ||
| 8590 | initial_define_key (control_x_map, '<', "scroll-left"); | ||
| 8591 | initial_define_key (control_x_map, '>', "scroll-right"); | ||
| 8592 | |||
| 8593 | initial_define_key (global_map, Ctl ('V'), "scroll-up-command"); | ||
| 8594 | initial_define_key (meta_map, Ctl ('V'), "scroll-other-window"); | ||
| 8595 | initial_define_key (meta_map, 'v', "scroll-down-command"); | ||
| 8596 | } | ||