From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.help Subject: Re: help-gnu-emacs Digest, Vol 62, Issue 20 Date: Tue, 8 Jan 2008 22:31:50 +1300 Message-ID: <18307.17158.108547.925312@kahikatea.snap.net.nz> References: <47825bda.0d67260a.098f.05adSMTPIN_ADDED@mx.google.com> <20080108004844.2fe4c7fa@reforged> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1199784793 3606 80.91.229.12 (8 Jan 2008 09:33:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Jan 2008 09:33:13 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Mike Mattie Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 08 10:33:33 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JCApv-0005MY-V7 for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Jan 2008 10:33:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCApY-00071K-Lj for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Jan 2008 04:33:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JCAoS-0006kk-CJ for help-gnu-emacs@gnu.org; Tue, 08 Jan 2008 04:32:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JCAoP-0006jx-V5 for help-gnu-emacs@gnu.org; Tue, 08 Jan 2008 04:31:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCAoO-0006jJ-Ia for help-gnu-emacs@gnu.org; Tue, 08 Jan 2008 04:31:56 -0500 Original-Received: from viper.snap.net.nz ([202.37.101.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JCAoN-0006DO-S6 for help-gnu-emacs@gnu.org; Tue, 08 Jan 2008 04:31:56 -0500 Original-Received: from kahikatea.snap.net.nz (135.61.255.123.dynamic.snap.net.nz [123.255.61.135]) by viper.snap.net.nz (Postfix) with ESMTP id 81E363DA6B0; Tue, 8 Jan 2008 22:31:53 +1300 (NZDT) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id DC08E8FC6D; Tue, 8 Jan 2008 22:31:50 +1300 (NZDT) In-Reply-To: <20080108004844.2fe4c7fa@reforged> X-Mailer: VM 7.19 under Emacs 23.0.50.25 X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50585 Archived-At: Mike Mattie writes: > 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 ,") Have you tried this? It won't work. > If that fixes it try using a function I previously posted that eliminates > the errors from the process of defining keys. If it were so simple don't you think Emacs would do this? > (defun insert-key-notation () > "inject a complete \(kbd \"sequence\"\) with key notation for a key sequence given by prompt" > (interactive) > (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. It looks like the reason that it doesn't work has already been explained but Forrest has decided not to accept the answer (or perhaps there is a communication problem)... > > > 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 Do "man ascii". This is 128 character set and 96, or thereabout, are printing characters. If there were a control character counterpart for each one that would result in 192 character set. Presumably control characters only exist for C-@ to C-_ (0 to 32, @ to _ being 64 to 96). > > i'm a newbie, could you give me any detailed clue to solve it? On a normal console, I don't think you can. -- Nick http://www.inet.net.nz/~nickrob