From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: Peng Dai <daipeng123456@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: define-key turns to go the wrong way.
Date: Thu, 4 Apr 2013 11:31:49 +0200 [thread overview]
Message-ID: <1EAA861C-C010-4166-8887-F7AC4FD50C2B@Web.DE> (raw)
In-Reply-To: <b2652296-7ec9-400b-92a1-fd2f01707480@googlegroups.com>
Am 04.04.2013 um 03:45 schrieb Peng Dai:
> When I use the "\C-h k" to see what' wrong. It turn out to be "\C-[" was readed as "<ECS>". I search the google with no result, it says it was because of the ISCAE's key value but with no soluvation give.
See 'man ascii' or http://en.wikipedia.org/wiki/ASCII.
The first 32 ASCII codes do not represent printable characters. So, how can one produce them, manually, interactively? (In a C programme no problem, of course.) The way to produce them is by holding down the CONTROL key (ctrl or such) and then pressing another key on the keyboard. This gives a "control code" or "control character", not printable. Since the Latin alphabet has only 26 members (the characters a to z or A to Z) it is necessary to use some other characters to be able to address all 32 control characters. C-a produces ASCII code 1, SOH, C-z produces ASCII code 26, SUB. And C-] is ASCII code 27 or ESC.
>
> And I find another key has the same problem,too. like:
> "\C-j" turn to be "<SPACE>"
> "\C-M-j" turn to be "<RET>j"
This is not correct. This must be introduced by you.
C-j is ASCII code 10 (because it's the tenth Latin character) or LF, LINEFEED. C-M-j can be mapped to whatever you like.
What you can do is launch GNU Emacs with -Q. Then you can type C-h k <your key combination>. In a *Help* buffer you'll see the explanation of that key code. Directly afterwards type C-x ESC ESC. This will show you in echo area (or mini-buffer) which actual "code" GNU Emacs received when you asked it for an explanation of the meaning of the pressed key combination.
--
Greetings
Pete
Some day we may discover how to make magnets that can point in any direction.
prev parent reply other threads:[~2013-04-04 9:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-04 1:45 define-key turns to go the wrong way Peng Dai
2013-04-04 9:05 ` XeCycle
2013-04-04 9:31 ` Peter Dyballa [this message]
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=1EAA861C-C010-4166-8887-F7AC4FD50C2B@Web.DE \
--to=peter_dyballa@web.de \
--cc=daipeng123456@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.
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.