unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Bob Proulx <bob@proulx.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Shortcut to have the cursor move X number of lines up or down
Date: Sat, 30 Mar 2013 15:58:40 -0600	[thread overview]
Message-ID: <20130330215840.GA4483@hysteria.proulx.com> (raw)
In-Reply-To: <FDD670CB2B924FA598D4FF637434934D@us.oracle.com>

Drew Adams wrote:
> Gregory Benjamin wrote:
> > > e.g., `C-6 C-n' moves down 6 lines.
> > 
> > Wouldn't that be: 'C-u 6 C-n'? You can do 'C-u 6 C-p' to go up,
> > or 'C-u -6 C-n' to go up.
> 
> C-6 has the same effect as C-u 6.
> C-- 6 has the same effect as C-u -6.
> C-- has the same effect as C-u -1.

That depends upon whether you are running emacs in a graphics window
or in a terminal window.  If in a graphics window then emacs can tell
that you are pressing Control + 6 individually.  But in a terminal
window then Control+6 produces C-^ instead and sends that to emacs.
And the rest produce a variety of other results.  Control+2 produces
C-@.  Control+3 produces ESC.  And so forth for the rest.

Bob



  reply	other threads:[~2013-03-30 21:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-30  8:31 Shortcut to have the cursor move X nu,ber of lines up or down Rami A
2013-03-30 14:36 ` Drew Adams
2013-03-30 20:43   ` Shortcut to have the cursor move X number " Gregory Benjamin
2013-03-30 20:50     ` Drew Adams
2013-03-30 21:58       ` Bob Proulx [this message]
2013-03-30 22:03         ` Drew Adams
     [not found] ` <mailman.23099.1364654185.855.help-gnu-emacs@gnu.org>
2013-03-30 19:49   ` Shortcut to have the cursor move X nu,ber " Rami A

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=20130330215840.GA4483@hysteria.proulx.com \
    --to=bob@proulx.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).