From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: XeCycle Newsgroups: gmane.emacs.help Subject: Re: define-key turns to go the wrong way. Date: Thu, 04 Apr 2013 17:05:37 +0800 Message-ID: <87eheqacny.fsf@xc.laptop> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1365130524 13706 80.91.229.3 (5 Apr 2013 02:55:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Apr 2013 02:55:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 05 04:55:52 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 1UNwoh-0006zH-Do for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Apr 2013 04:55:51 +0200 Original-Received: from localhost ([::1]:48061 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNwoI-0007tG-IC for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Apr 2013 22:55:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNwo1-0007s1-Rq for help-gnu-emacs@gnu.org; Thu, 04 Apr 2013 22:55:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNwo0-00024m-SA for help-gnu-emacs@gnu.org; Thu, 04 Apr 2013 22:55:09 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:60451) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNwo0-000245-MI for help-gnu-emacs@gnu.org; Thu, 04 Apr 2013 22:55:08 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UNwoO-0006k2-Gk for help-gnu-emacs@gnu.org; Fri, 05 Apr 2013 04:55:32 +0200 Original-Received: from 59.78.37.25 ([59.78.37.25]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 Apr 2013 04:55:32 +0200 Original-Received: from XeCycle by 59.78.37.25 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 Apr 2013 04:55:32 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 54 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 59.78.37.25 User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:Ms5d+rFdvtEaF9D+c2WzryKbJqU= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:90001 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Peng Dai writes: > I use ubuntu12.04(32bit,US), and emacs24.2. When I descide to have a new = key > "\C-[" and "\C-]" to scroll my window, > > so I write the following in the init.el > > (global-set-key (kbd "\C-]") (lambda () (interactive) (scroll-up 2))) > (global-set-key (kbd "\C-[") (lambda () (interactive) (scroll-down 2))) Minor mistake: when using kbd, you're expected to write "C-]" without the backslash. > this first is work fine. but the second didn't work. > 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. Yes. "C-[" *is* , at least on terminals. Emacs is designed to be compatible with terminals, so it's unlikely to get changed. > And I find another key has the same problem,too. like: > "\C-j" turn to be "" > "\C-M-j" turn to be "j" DO NOT ESCAPE CTRL OR META WHEN USING `kbd'. =2D-=20 Carl Lei (XeCycle) Department of Physics, Shanghai Jiao Tong University OpenPGP public key: 7795E591 Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQEcBAEBAgAGBQJRXUJkAAoJEI1xjsR3leWRaJcIAJBDSoQmnXsjf0Sy2oj+t6N+ 1ENsixjNc6rJHvKlSB99IL8Mdyj2SI2AJw1r9GVdJCAFtaAy5rcKYgwYp+ZIpxlQ wDeZDLZYBemFLDIf297otmZhKZaFt63u4rPTpeIJlX3GNO8wH+H4cgmyJRf7UY7w LVomiQKmfynvuiYXlK8t3/tLLlxLTKMckY3xDU2bzxMbW6UIzpmF7F2yGOvxqQ17 HItN9sIh9CLfSL0LIk+GuyIt12I7dA+knOyFrWf1mSOKIZAJxtu930I49/ao6x+0 HnyQrNY0Huc41Z5YNuwvP3xcpDjBhxJMbE03yTa67RfjR8ZMXgo5vP6NtPeH6Vc= =Qt6y -----END PGP SIGNATURE----- --=-=-=--