help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to scroll other window backwards? C-M-v does forwards


From: Michael Jahn
Subject: Re: How to scroll other window backwards? C-M-v does forwards
Date: Wed, 08 Dec 2010 15:17:14 -0000
User-agent: slrn/0.9.9p1/rt (Linux)

Daniel schrieb:
> Hello,
>
> I think that the control + meta + v function is great.  However, is
> there a way to scroll the other window's file backwards without having
> to leave my current window?
>
> Thank you!

Hi,
this is done with scroll-other-window.

,----[ C-h f scroll-other-window RET ]
| scroll-other-window is an interactive built-in function in `C source code'.
| It is bound to <M-next>, C-M-v, ESC <next>.
| (scroll-other-window &optional arg)
| 
| Scroll next window upward arg lines; or near full screen if no arg.
| A near full screen is `next-screen-context-lines' less than a full screen.
| The next window is the one below the current one; or the one at the top
| if the current one is at the bottom.  Negative arg means scroll downward.
| If arg is the atom `-', scroll downward by nearly full screen.
| When calling from a program, supply as argument a number, nil, or `-'.
| 
| If `other-window-scroll-buffer' is non-nil, scroll the window
| showing that buffer, popping the buffer up if necessary.
| If in the minibuffer, `minibuffer-scroll-window' if non-nil
| specifies the window to scroll.  This takes precedence over
| `other-window-scroll-buffer'.
`----

from my .emacs.el :

(defun scroll-other-window-up ()
  "Scroll the other window one line up."
  (interactive)
  (scroll-other-window -1)
)
(defun scroll-other-window-down ()
  "Scroll the other window one line down."
  (interactive)
  (scroll-other-window 1)
)
(global-set-key [C-M-S-up] 'scroll-other-window-up)
(global-set-key [C-M-S-down] 'scroll-other-window-down)

See also: 
Finding a Command's Name or Keyboard Shortcut
http://xahlee.org/emacs/emacs_int.html

Micha


reply via email to

[Prev in Thread] Current Thread [Next in Thread]