From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: C-M-TAB stand-in for M-TAB, on MS Windows? Date: Mon, 26 May 2008 09:38:32 -0700 Message-ID: <000001c8bf4e$ef90aed0$0200a8c0@us.oracle.com> References: <007901c8bec5$4179df80$0200a8c0@us.oracle.com><3F8C7B43-05C3-4970-91DA-73152E9286E8@pobox.com> <483AE253.1010208@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1211819998 9553 80.91.229.12 (26 May 2008 16:39:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 May 2008 16:39:58 +0000 (UTC) Cc: emacs-devel@gnu.org To: "'Lennart Borgman \(gmail\)'" , "'John Paul Wallington'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 26 18:40:38 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K0fkT-0001sz-VK for ged-emacs-devel@m.gmane.org; Mon, 26 May 2008 18:40:38 +0200 Original-Received: from localhost ([127.0.0.1]:40438 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K0fji-0000rL-Is for ged-emacs-devel@m.gmane.org; Mon, 26 May 2008 12:39:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K0fjd-0000qG-8h for emacs-devel@gnu.org; Mon, 26 May 2008 12:39:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K0fja-0000q4-Qs for emacs-devel@gnu.org; Mon, 26 May 2008 12:39:43 -0400 Original-Received: from [199.232.76.173] (port=58035 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K0fja-0000q1-J3 for emacs-devel@gnu.org; Mon, 26 May 2008 12:39:42 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]:32039) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K0fja-0004nN-GT for emacs-devel@gnu.org; Mon, 26 May 2008 12:39:42 -0400 Original-Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m4QGdal0028469; Mon, 26 May 2008 10:39:37 -0600 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m4QGdZi4000527; Mon, 26 May 2008 10:39:36 -0600 Original-Received: from inet-141-146-46-1.oracle.com by acsmt351.oracle.com with ESMTP id 3679624461211819897; Mon, 26 May 2008 09:38:17 -0700 Original-Received: from dradamslap1 (/24.5.171.3) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 26 May 2008 09:38:17 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <483AE253.1010208@gmail.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Thread-Index: Aci/TBFgRxSt0uTJRlK/NXXMOBxexwAARmCg X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:97739 Archived-At: > >> M-TAB doesn't work on MS Windows. ESC TAB works in its > >> stead in some contexts, but not all. > > > > FWIW, on NT derived systems one can use the function > > `w32-register-hot-key' to enable Emacs to see M-TAB > > (untested on Vista). > > On what version did you test this? It seems to work on this version: GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-05-04 on LENNART-69DE564 However, the doc string is not as clear as it could be: Register key as a hot-key combination. Certain key combinations like Alt-Tab are reserved for system use on Windows, and therefore are normally intercepted by the system. However, most of these key combinations can be received by registering them as hot-keys, overriding their special meaning. key must be a one element key definition in vector form that would be acceptable to `define-key' (e.g. [A-tab] for Alt-Tab). The meta modifier is interpreted as Alt if `w32-alt-is-meta' is t, and hyper is always interpreted as the Windows modifier keys. The return value is the hotkey-id if registered, otherwise nil. By default, `w32-alt-is-meta' is t. I tried (w32-register-hot-key [A-tab]) on Windows XP, and it had no effect. However, I then tried (w32-register-hot-key [M-tab]), and it worked. I can't tell from the doc string whether registering [A-tab] should have an effect, in which case there is a bug, or not. Also, why must KEY be "a one element key definition in vector form"? Just curious. What is the underlying restriction? Questions: 1. How to UNregister a hot key, once it's registered? 2. How about registering M-tab by default? 3. How about mentioning w32-register-hot-key in the Emacs manual, and indexing it there? This represents an important FAQ. 4. Likewise, for the Elisp manual. 5. Likewise, for NEWS. How are users supposed to know about this?