From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelina Carlton Newsgroups: gmane.emacs.help Subject: Re: key binding with windows and menu keys Date: Tue, 16 Aug 2005 09:21:13 -0400 Message-ID: <87slxanhkm.fsf@magma.ca> References: <87iry7mfn5.fsf@magma.ca> <196ed564d8f1aee33cd06d584009eabf@Web.DE> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1124198772 24475 80.91.229.2 (16 Aug 2005 13:26:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Aug 2005 13:26:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 16 15:26:05 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E51R6-0005oa-1W for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Aug 2005 15:25:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E51To-0003YM-9n for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Aug 2005 09:27:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E51Sy-0003NR-AP for help-gnu-emacs@gnu.org; Tue, 16 Aug 2005 09:26:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E51St-0003Ks-6K for help-gnu-emacs@gnu.org; Tue, 16 Aug 2005 09:26:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E51Ss-0003Je-9c for help-gnu-emacs@gnu.org; Tue, 16 Aug 2005 09:26:50 -0400 Original-Received: from [206.191.0.250] (helo=mx2.magma.ca) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1E51d3-0007O4-75 for help-gnu-emacs@gnu.org; Tue, 16 Aug 2005 09:37:21 -0400 Original-Received: from mail1.magma.ca (mail1.magma.ca [206.191.0.252]) by mx2.magma.ca (8.13.0/8.13.0) with ESMTP id j7GDLHPb021808 for ; Tue, 16 Aug 2005 09:21:18 -0400 Original-Received: from localhost.localdomain (ottawa-hs-209-217-79-57.d-ip.magma.ca [209.217.79.57]) by mail1.magma.ca (8.13.0/8.13.0) with ESMTP id j7GDLFAq008734 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Tue, 16 Aug 2005 09:21:17 -0400 Original-Received: from orchid by localhost.localdomain with local (Exim 4.50) id 1E51NR-0000m2-R9 for help-gnu-emacs@gnu.org; Tue, 16 Aug 2005 09:21:13 -0400 Original-To: help-gnu-emacs@gnu.org Mail-Followup-To: help-gnu-emacs@gnu.org In-Reply-To: <196ed564d8f1aee33cd06d584009eabf@Web.DE> (Peter Dyballa's message of "Mon, 15 Aug 2005 17:12:04 +0200") User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) 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:28757 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28757 Peter Dyballa writes: > 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. > If not, you could by hand 'M-x global-set-key RET > scroll-other-window RET C-x ESC ESC C-a C-k C-g' -- bind the key and > start to repeat-previous-command. The cursor goes into the minibuffer, > where you put it at the beginning and then kill the whole line. Now an > interrupt, and you're ready to yank/paste the valid ELisp expression > into .emacs ... it wouldn't look pretty with a number instead of > symbols (that's what I am used from X11 or Apple's Aqua), but it would > work. So trying by hand, M-x global-set-key NET NET puts this in my mini buffer: Set key ESC [ 2 5 to command: ~ I deleted the ~ and typed other-window and then did the ESC ESC stuff you mentioned. to get: Redo: (global-set-key "[25" (quote other-window)) So i have tried in my .mics: (global-set-key "[25" (quote other-window)) and (global-set-key "[25" 'other-window) And now it does switch windows but prints the tilde also :-\ How can get rid of the tilde? Thanks for the help! -- -----Angelina Carlton----- orchid on irc.freenode.net brat@magma.ca web:bzgirl.bakadigital.com -------------------------- > LocalWords: ESC