From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: anhnmncb Newsgroups: gmane.emacs.help Subject: Re: How to bind -; with a function on windows? Date: Mon, 27 Oct 2008 13:25:15 +0800 Message-ID: <873aii38zo.fsf@sina.com> References: <0pudnRRrfsDCBJnUnZ2dnUVZ_v7inZ2d@sysmatrix.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1225085173 22374 80.91.229.12 (27 Oct 2008 05:26:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Oct 2008 05:26:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 27 06:27:14 2008 connect(): Connection refused 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 1KuKdC-0000Lw-E3 for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Oct 2008 06:27:10 +0100 Original-Received: from localhost ([127.0.0.1]:60394 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuKc6-0002Sm-Fl for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Oct 2008 01:26:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KuKbj-0002Pm-T6 for help-gnu-emacs@gnu.org; Mon, 27 Oct 2008 01:25:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KuKbi-0002O3-Cb for help-gnu-emacs@gnu.org; Mon, 27 Oct 2008 01:25:39 -0400 Original-Received: from [199.232.76.173] (port=37444 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuKbi-0002O0-6r for help-gnu-emacs@gnu.org; Mon, 27 Oct 2008 01:25:38 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:48916 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KuKbi-0002EG-9P for help-gnu-emacs@gnu.org; Mon, 27 Oct 2008 01:25:38 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KuKbU-0005B9-Og for help-gnu-emacs@gnu.org; Mon, 27 Oct 2008 05:25:29 +0000 Original-Received: from 221.6.39.130 ([221.6.39.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Oct 2008 05:25:24 +0000 Original-Received: from anhnmncb by 221.6.39.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Oct 2008 05:25:24 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 43 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 221.6.39.130 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) Cancel-Lock: sha1:PsuphrA0H7CK5uXhPLJTRNwdlw8= X-Antivirus: avast! (VPS 081026-0, 10/26/2008), Outbound message X-Antivirus-Status: Clean X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:59181 Archived-At: "B. T. Raven" writes: > anhnmncb wrote: >> When I type M-x global-set-key RET, then press , the help >> window pops up and show: >> >> runs the command ignore, which is an interactive compiled >> Lisp function in `subr.el'. >> >> It is bound to , , , >> . >> >> I have no chance to press -; to function. Type them in emacs >> window just produce a ;. >> >> >> > > If you put this in your .emacs: > > (setq w32-pass-lwindow-to-system nil > w32-pass-rwindow-to-system nil > w32-pass-apps-to-system nil > w32-lwindow-modifier 'super ;; Left Windows > w32-rwindow-modifier 'super ;; Right Windows > w32-apps-modifier 'hyper) ;; App-Menu (key to right of > Right Windows) > > then you will be able to use these bottom row keys as modifiers but > you still won't be able to bind a function to the bare key (lwindow > for example). You could however bind the function to Super- [a through > z] or even combinations of Ctl, Meta, Super, and Hyper: > > (global-set-key [(super w)] 'foo) > > As Lennart notes there are some combinations that Windows will trap at > the OS level but some of these are useful. Alt-tab will switch focus > between emacs and some other app from which you may want to copy-paste > for example. > > Ed Wow, it works, many thanks.