From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Bugs in handling of Alt-key on w32 Date: Tue, 26 Jul 2005 01:03:59 +0200 Message-ID: <42E56FDF.2080503@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1122333418 5750 80.91.229.2 (25 Jul 2005 23:16:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Jul 2005 23:16:58 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 26 01:16:56 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DxCBc-0001Jf-GX for ged-emacs-devel@m.gmane.org; Tue, 26 Jul 2005 01:16:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DxCDv-00015t-FQ for ged-emacs-devel@m.gmane.org; Mon, 25 Jul 2005 19:19:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DxC7r-0006gU-Cc for emacs-devel@gnu.org; Mon, 25 Jul 2005 19:12:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DxC7n-0006eP-Fw for emacs-devel@gnu.org; Mon, 25 Jul 2005 19:12:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DxC7n-0006eL-A1 for emacs-devel@gnu.org; Mon, 25 Jul 2005 19:12:43 -0400 Original-Received: from [81.228.11.159] (helo=pne-smtpout2-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DxCA2-00083X-Jc for emacs-devel@gnu.org; Mon, 25 Jul 2005 19:15:02 -0400 Original-Received: from [192.168.123.121] (83.249.205.6) by pne-smtpout2-sn1.fre.skanova.net (7.2.060.1) id 42B937170054A82C for emacs-devel@gnu.org; Tue, 26 Jul 2005 01:04:03 +0200 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Original-To: Emacs Devel 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:41215 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41215 I have been trying to get the Alt-key to work for accessing the menus (which is the normal use of it on w32). I think I found a couple of bugs: On w32 start by setting (setq w32-pass-alt-to-system t) (setq w32-alt-is-meta nil) Then try typing for example Alt, f. You can do that in two ways normally on w32: 1) Either hold down Alt and then press f, 2) or press and release Alt and then f. Both these would open the File menu on a w32 app. In Emacs the first gives the message "A-f is undefined". The second alternative can give different results in Emacs depending on the time between typing Alt and f. Three things can happen as it works now (at least on a rather slow pc, 700MHz): a) the message "A-f is undefined" --- when typing fast b) f is inserted in the buffer --- typing a bit slower c) the File menu is opened --- typing even slower If StickyKeys (an accessibility option on w32, good to prevent hand damage too) are used another problem shows up too. You have to type Alt two times. (And I did not test carefully what can happen here). I can not say I understand the code, but it seems to me that something is wrong in the handling of the Emacs specific messages queues on w32. (I have told parts of this before, if someone remembers it.)