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: key binding with windows and menu keys Date: Tue, 16 Aug 2005 19:33:08 +0200 Message-ID: <704081cb6e06281e5d837a13f8f72793@Web.DE> References: <87iry7mfn5.fsf@magma.ca> <196ed564d8f1aee33cd06d584009eabf@Web.DE> <87slxanhkm.fsf@magma.ca> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1124213776 8329 80.91.229.2 (16 Aug 2005 17:36:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Aug 2005 17:36:16 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 16 19:36:06 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E55L7-0003Kl-GD for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Aug 2005 19:35:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E55OX-00076U-UX for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Aug 2005 13:38:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E55O6-000736-EJ for help-gnu-emacs@gnu.org; Tue, 16 Aug 2005 13:38:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E55O0-0006zc-Ga for help-gnu-emacs@gnu.org; Tue, 16 Aug 2005 13:38:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E55O0-0006zL-Eb for help-gnu-emacs@gnu.org; Tue, 16 Aug 2005 13:38:04 -0400 Original-Received: from [217.72.192.224] (helo=smtp06.web.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1E55Yo-0001I1-Sb for help-gnu-emacs@gnu.org; Tue, 16 Aug 2005 13:49:15 -0400 Original-Received: from [84.245.189.203] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.105 #314) id 1E55JG-000200-00; Tue, 16 Aug 2005 19:33:10 +0200 In-Reply-To: <87slxanhkm.fsf@magma.ca> X-Image-Url: http://homepage.mac.com/sparifankal/.cv/thumbs/me.thumbnail Original-To: Angelina Carlton X-Mailer: Apple Mail (2.622) X-Sender: Peter_Dyballa@web.de 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:28759 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28759 Am 16.08.2005 um 15:21 schrieb Angelina Carlton: >> Is C-h k returns just ? > > For me it returns: ~ > That is, if I press win-logo in a writable buffer, it prints a ~ and > beeps my terminal. If the buffer is not writable it simply beeps. > For me it's not clear whether you really press two keys ... The Windows key is presumed to be some modifier key, like Shift, Meta, Control, super, or hyper. (It does not work alone, only when pressed with one another non-modifier key.) What this key is doing is easy to find out: in *scratch* buffer C-q . It there is nothing coming, i.e. you see in minibuffer C-q- constantly, then it *is* a modifier key (press to finish input). You can now go to check what input is produced when you press C-q ... If you see something like ESC [ 2 5 ~ then your keyboard is in some ANSI/vt keyboard mode. lisp/term/lk201.el already contains a definition for that key: (define-key function-key-map "\e[25~" [f13]) So you should try to load/require that ELisp file in .emacs (if it does not get loaded automatically; check the *Messages* buffer for that). Then you have that key defined as f13. Now you can bind f13 to some function ... -- Greetings Pete It's not the valleys in life I dread so much as the dips. -- Garfield