From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: define-key turns to go the wrong way. Date: Thu, 4 Apr 2013 11:31:49 +0200 Message-ID: <1EAA861C-C010-4166-8887-F7AC4FD50C2B@Web.DE> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1365067930 6603 80.91.229.3 (4 Apr 2013 09:32:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Apr 2013 09:32:10 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Peng Dai Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 04 11:32:37 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UNgX5-00054E-Bg for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Apr 2013 11:32:35 +0200 Original-Received: from localhost ([::1]:47822 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNgWe-0007AR-GM for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Apr 2013 05:32:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNgWT-0007AG-14 for help-gnu-emacs@gnu.org; Thu, 04 Apr 2013 05:31:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNgWQ-000885-I0 for help-gnu-emacs@gnu.org; Thu, 04 Apr 2013 05:31:56 -0400 Original-Received: from mout.web.de ([212.227.15.4]:51306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNgWQ-00086b-9p for help-gnu-emacs@gnu.org; Thu, 04 Apr 2013 05:31:54 -0400 Original-Received: from sumac.fritz.box ([88.153.243.36]) by smtp.web.de (mrweb102) with ESMTPA (Nemesis) id 0McWnE-1U61933bqi-00I0na; Thu, 04 Apr 2013 11:31:50 +0200 In-Reply-To: X-Mailer: Apple Mail (2.1085) X-Provags-ID: V02:K0:Oo5BQrEa5KT1JOSXayolc5ymJsm4l61IDnJezf0bms8 e30R258E20sju5iL4oRmEh2kVAgtY9PPHYUipTHbq2xy4Ye0sF GbAJOJWh12DU+ePWsHpwgJJNFZCQpkfs2vHpGz+dDG8vFdSlqA 5BD5XRYLb6J9Ec5r5v1hcwQ4F6bTTxRa359iiP03wpVwt1Sby5 oSbM3JhNyFyem40nLJJEQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.4 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89980 Archived-At: 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 "". 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. >=20 > And I find another key has the same problem,too. like: > "\C-j" turn to be "" > "\C-M-j" turn to be "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 = . 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.