unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Michael Jahn <blackimperix@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to scroll other window backwards? C-M-v does forwards
Date: Sun, 4 Jul 2010 16:50:43 +0200	[thread overview]
Message-ID: <slrni317u4.qi1.blackimperix@imperix.podzone.org> (raw)
In-Reply-To: 2f1f9c14-8cdb-4507-aa1a-a2a8d72f0763@5g2000yqz.googlegroups.com

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	other threads:[~2010-07-04 14:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2f1f9c14-8cdb-4507-aa1a-a2a8d72f0763@5g2000yqz.googlegroups.com>
2010-07-04 14:50 ` Michael Jahn [this message]
2010-07-04 15:02 ` How to scroll other window backwards? C-M-v does forwards Teemu Likonen
2010-07-04 15:40 ` Lowell Gilbert
2010-07-04 18:16   ` Daniel
2010-07-04 18:31     ` Lowell Gilbert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=slrni317u4.qi1.blackimperix@imperix.podzone.org \
    --to=blackimperix@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).