all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Harshdeep S Jawanda <hjawanda@cs.unm.edu>
Cc: ihs_4664@yahoo.com
Subject: Re: Trying to global-set-key
Date: Tue, 03 Jun 2003 15:53:24 -0600	[thread overview]
Message-ID: <3EDD18D4.6000508@cs.unm.edu> (raw)
In-Reply-To: <3EDD0E07.5020000@yahoo.com>

Kevin Rodgers wrote:

> But if you mean that you want to be able to type C-down instead
> of `C-u 1 C-v',

Yes, that is exactly what I mean to say.

> then the simplest thing is to define a keyboard macro:
>
> (global-set-key [C-down] (kbd "C-u 1 C-v")) 

I tried this: doesn't work.  Basically, I think the problem is that 
Emacs is not recognizing the Ctrl key as a modifier when used with the 
down arrow key.

> That ought to work, but perhaps a local key binding is shadowing the 
> global
> binding.  What happens if you type `C-h k' followed by C-down?

It only says "<down> runs the command next-line". It doesn't recognize 
that the Ctrl key has also been pressed. When I write (global-set-key 
[next] '"\C-u1\C-v"), it works fine. I just need to tell Emacs to modify 
behavior only when Ctrl key is pressed.

> What does `C-h l' show immediately after that?

Well, if you really want to know:

C-x b RET ESC [ A ESC [ A ESC [ A ESC [ B ESC [ B ESC
[ B C-h k ESC [ B C-h l

I personally can't make head or tail of it :-).  Thanks for your help, 
though.  I have near-zero knowledge of elisp -- I am only trying out the 
things I can glean from the info files :-).

-- 
Harshdeep S Jawanda

  reply	other threads:[~2003-06-03 21:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.7223.1054666197.21513.help-gnu-emacs@gnu.org>
2003-06-03 21:07 ` Trying to global-set-key Kevin Rodgers
2003-06-03 21:53   ` Harshdeep S Jawanda [this message]
     [not found]   ` <mailman.7232.1054677270.21513.help-gnu-emacs@gnu.org>
2003-06-03 23:16     ` Stefan Monnier
2003-06-03 18:53 Harshdeep S Jawanda
2003-06-03 21:18 ` Harshdeep S Jawanda

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=3EDD18D4.6000508@cs.unm.edu \
    --to=hjawanda@cs.unm.edu \
    --cc=ihs_4664@yahoo.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.