From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Phil Carmody Newsgroups: gmane.emacs.help Subject: Re: how to bind c-~ or c-` ? Date: Fri, 19 Dec 2008 11:27:14 +0200 Organization: Saunalahti Customer Message-ID: <87tz90v7kd.fsf@nonospaz.fatphil.org> References: <87d4fprvlp.fsf@iki.fi> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229679686 1746 80.91.229.12 (19 Dec 2008 09:41:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Dec 2008 09:41:26 +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 Dec 19 10:42: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 1LDbsO-0000vr-Vn for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Dec 2008 10:42:33 +0100 Original-Received: from localhost ([127.0.0.1]:36841 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDbrC-0004WY-Ea for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Dec 2008 04:41:18 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!feeder.erje.net!feeder2.news.saunalahti.fi!feeder1.news.saunalahti.fi!reader1.news.saunalahti.fi!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:4pIab7BVuN8AJWMQyE17q+Awsjs= Original-Lines: 33 Original-NNTP-Posting-Host: 83.143.57.195 Original-X-Complaints-To: newsmaster@saunalahti.com Original-X-Trace: reader1.news.saunalahti.fi 1229678721 83.143.57.195 (Fri, 19 Dec 2008 11:25:21 EET) Original-NNTP-Posting-Date: Fri, 19 Dec 2008 11:25:21 EET Original-Xref: news.stanford.edu gnu.emacs.help:165515 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:60847 Archived-At: "Samuel Wales" writes: > On Thu, Dec 18, 2008 at 15:01, Teemu Likonen wrote: >> Perhaps "kbd" function helps? (kbd "C-`") returns [67108960] so you >> could do: >> >> (global-set-key (kbd "C-`") 'do-this) >> (global-set-key (kbd "C-~") 'do-that) > > That works. Thank you. > > The only remaining issue is C-F1, but that is probably an OS thing, > since emacs doesn't recognize it. What does C-h k say when, and view-lossage say after, you press it? It's in the native emacs here, but ``ESC [ 1 1 ^'' via a screen session in a terminal, and simply not a recognised keypress at all from the console. For this reason, you might want to not rely on binding any function to such a key if you're ever likely to change environment. Of course, if you look at the traditional meaning of the 'control' modifier, it only makes sense for a-z and a handful of other characters. That emacs is able to capture keyboard events and recognise combinations which have no intrinsic meaning outside emacs is nice when you can always rely on it, but an annoyance when you're suddently placed at a console which doesn't provide emacs the same level of control. Phil -- I tried the Vista speech recognition by running the tutorial. I was amazed, it was awesome, recognised every word I said. Then I said the wrong word ... and it typed the right one. It was actually just detecting a sound and printing the expected word! -- pbhj on /.