all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Harshdeep Jawanda <hsjawanda@gmail.com>
Subject: Re: emacs question
Date: Wed, 15 Dec 2004 08:32:09 -0700	[thread overview]
Message-ID: <b4f2df500412150732595f152b@mail.gmail.com> (raw)
In-Reply-To: <87llc0l5or.fsf@phun.phasmic.org>

The thing is, I don't want to scroll the other window, I want to
scroll the current one, the one that has the point in it.

I tried the lines you suggested, and what it does is page-up and
page-down in the other window, neither of which is the behavior I am
looking for (not that it isn't useful).  I want line-up and line-down
in the current window.

To understand better what I am trying to achieve with those
configuration lines, one could put them in their .emacs file and try
it out.  I am reproducing the lines below:
    (global-set-key [C-down] '"\C-u1\C-v")
    (global-set-key [C-up] '"\C-u1\M-v")

Thanks for the help, but that's not quite what I am looking for.

The problem is only that this global-set-key doesn't work over SSH. 
What could be the reason for global-set-key not working over SSH?

Would it help if instead of directly writing '"\C-u1\C-v" I made it
into a function and then called the function?  As I don't know elisp,
could somebody help me by writing out this function for me :-)?

PS: To make a line visible in the buffer that has previously scrolled
off the window, one normally has to move point up (or down) a few
lines, do C-l, then check to see if the desired line is in view.  If
not, then repeat process.  I find this super-clumsy (can't understand
how RMS thought that was the way to go).

So my desire was/is to have the kind of scroll functionality I've seen
in some Windows editors.

On Wed, 15 Dec 2004 01:18:44 +0000, Neil Woods <cnw+usenet@pobox.com> wrote:
> Why not use the actual function names themselves?
> 
> I have this in my ~/.emacs:
> 
> ;; Make control+pageup/down scroll the other buffer
> (global-set-key [C-next] 'scroll-other-window)
> (global-set-key [C-prior] 'scroll-other-window-down)
> 
> which seems more natural to me.

-- 
Harshdeep S Jawanda

  reply	other threads:[~2004-12-15 15:32 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-14 19:45 emacs question Villa, Maria (HBO)
2004-12-14 22:04 ` Rodrigo Canellas
2004-12-14 22:40   ` Harshdeep Jawanda
     [not found]   ` <mailman.6016.1103064708.27204.help-gnu-emacs@gnu.org>
2004-12-15  1:18     ` Neil Woods
2004-12-15 15:32       ` Harshdeep Jawanda [this message]
2004-12-15 16:36     ` Kevin Rodgers
2004-12-15  6:54 ` Gian Uberto Lauri
  -- strict thread matches above, loose matches on Subject: below --
2013-01-13 17:48 EMACS question Kurt Jordan
2013-01-13 19:10 ` Drew Adams
2013-01-13 19:51 ` Eli Zaretskii
     [not found] <AANLkTincb2ng8o-4T3_BRiDU6vFjpPVCqbsjUoXLYE6p@mail.gmail.com>
2010-05-20 14:27 ` emacs question Rina & Avner
2010-05-21  1:27   ` Lennart Borgman
2010-05-21 13:33   ` Tassilo Horn
     [not found]   ` <mailman.5.1274448820.9020.help-gnu-emacs@gnu.org>
2010-05-24  0:28     ` Stefan Monnier
2008-11-26 13:44 Craig Petty
2008-11-11 17:02 emacs Question Craig Petty
2008-11-11 18:47 ` Peter Dyballa
     [not found] ` <mailman.90.1226429278.26697.help-gnu-emacs@gnu.org>
2008-11-12  3:44   ` TheFlyingDutchman
     [not found] <mailman.5982.1103055549.27204.help-gnu-emacs@gnu.org>
2004-12-15 15:20 ` emacs question kgold
2004-12-15 14:41 Villa, Maria (HBO)
2004-12-15 16:00 ` Gian Uberto Lauri
     [not found] <mailman.6625.1099324620.2017.help-gnu-emacs@gnu.org>
2004-11-01 17:29 ` Kevin Rodgers
2004-11-01 15:47 Jeffrey Leitner
2004-11-01 21:36 ` Ehud Karni

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

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

  git send-email \
    --in-reply-to=b4f2df500412150732595f152b@mail.gmail.com \
    --to=hsjawanda@gmail.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.