From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: How to bind -; with a function on windows? Date: Sun, 26 Oct 2008 10:23:22 -0600 Message-ID: <0pudnRRrfsDCBJnUnZ2dnUVZ_v7inZ2d@sysmatrix.net> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1225039255 2278 80.91.229.12 (26 Oct 2008 16:40:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Oct 2008 16:40:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 26 17:41:56 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 1Ku8gX-00081b-I3 for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Oct 2008 17:41:49 +0100 Original-Received: from localhost ([127.0.0.1]:43848 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ku8fR-0008FD-Ey for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Oct 2008 12:40:41 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Sun, 26 Oct 2008 11:22:54 -0500 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 39 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 65.45.140.59 Original-X-Trace: sv3-Ej1f9x7/CXkSU4IeeAlVFhhnbGvz/bcw+AC2WeY0nkuuIPPD3HdPDprThwzgg+B1bTeJHfk2Xq8MagH!9HODMJzhX42mqhT50JyXycL/POFNrKazFpOPYHNprBx2avsB61/Ay+oxvL6MbJUQyO8ClhWuJmBg!cHsHGGW8pcGGRXPbM4p+UzMngZiaCg== Original-X-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Original-Xref: news.stanford.edu gnu.emacs.help:163831 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:59172 Archived-At: 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