[Top][All Lists]

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

Re: help-gnu-emacs Digest, Vol 62, Issue 20

From: Mike Mattie
Subject: Re: help-gnu-emacs Digest, Vol 62, Issue 20
Date: Tue, 8 Jan 2008 00:48:44 -0800

On Tue, 8 Jan 2008 15:38:08 +0800
Forrest <> wrote:

> > > global-set-key (kbd "C-,")
> > > '(lambda () "scroll the page down" (interactive) (scroll-
> > > down 1)))

try a space like this:
(kbd "C-c ,")

If that fixes it try using a function I previously posted that eliminates the 
from the process of defining keys.

(defun insert-key-notation ()
  "inject a complete \(kbd \"sequence\"\) with key notation for a key sequence 
given by prompt"
  (insert "(kbd \"")
  (insert (format-kbd-macro (read-key-sequence "Key? " nil t)))
  (insert "\")"))

it will define the kbd sexp for you after it prompts you for the key sequence.

> > The console and other terminal emulations can only produce "key
> > events" in the ASCII or extended ASCII range, i.e. 8 bit characters
> > (man ascii). Therefore not every time you hold down the control
> > "modifier" key and press some other key something with a meaning is
> > produced. It's like when you're scribbling on paper: not every
> > "picture" is a letter or a digit or worth an exhibition at MOMA ...
> > C-, can work X which has its own concept of events that are
> > abstracted from ASCII codes.
> C-x C-c work well in console, so i guess there must be something
> wrong with my key-binding settings. and also, emacs was designed in
> ages when X was not popular, it's unreasonable that custom
> key-binding doesn't work
> i'm a newbie, could you give me any detailed clue to solve it?

Attachment: signature.asc
Description: PGP signature

reply via email to

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