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: Mon, 27 Oct 2008 12:43:08 -0600 Message-ID: References: <0pudnRRrfsDCBJnUnZ2dnUVZ_v7inZ2d@sysmatrix.net> 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 1225136544 10560 80.91.229.12 (27 Oct 2008 19:42:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Oct 2008 19:42:24 +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 20:43:25 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 1KuXzF-00051f-UO for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Oct 2008 20:42:50 +0100 Original-Received: from localhost ([127.0.0.1]:51464 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuXy6-00018a-Vm for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Oct 2008 15:41:39 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.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: Mon, 27 Oct 2008 13:42:40 -0500 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 51 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 65.45.140.21 Original-X-Trace: sv3-meD+gWnANMXoGLWjReY9iX7zYRQQ18UKq9X2DzHujeBkPJe6wyq82iO+CTbxf8b39YPghfhGXy/a8Kh!FiGT0z44YWKpF0OC21VTHw8kIy0+RN51zSBX66fekYXtqwMk1RIJAMUDwRW5sEyxrZlFr58Z3yq0!7ZuAqV6XpD/6/nTegQilJqhXxDeYGA== 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:163849 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:59189 Archived-At: anhnmncb wrote: > "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. > > > Good. Btw, I was wrong about M-f4 (alt-f4)which seems to unconditionally kill the current process in Windows. In Emacs that doesn't happen. Both C-F4 and M-F4 can be mapped to functions. Ed