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: Re: w32-pass-lwindow-to-system does not work as expected Date: Wed, 06 Jul 2005 10:36:45 +0200 Message-ID: <47c206147c5919.47c591947c2061@net.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1120641308 879 80.91.229.2 (6 Jul 2005 09:15:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Jul 2005 09:15:08 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 06 11:15:04 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dq5zP-0005Uh-OB for ged-emacs-devel@m.gmane.org; Wed, 06 Jul 2005 11:14:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dq60i-0002c1-C3 for ged-emacs-devel@m.gmane.org; Wed, 06 Jul 2005 05:16:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dq5Th-0003Ve-Db for emacs-devel@gnu.org; Wed, 06 Jul 2005 04:41:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dq5So-0003U8-33 for emacs-devel@gnu.org; Wed, 06 Jul 2005 04:41:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dq5QN-0003P0-1w for emacs-devel@gnu.org; Wed, 06 Jul 2005 04:38:35 -0400 Original-Received: from [130.235.208.46] (helo=piraten.student.lu.se) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dq5Uu-0007wj-Qk; Wed, 06 Jul 2005 04:43:13 -0400 Original-Received: from net.lu.se (localhost [127.0.0.1]) by piraten.student.lu.se (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with ESMTP id <0IJ7006656L9BH@piraten.student.lu.se>; Wed, 06 Jul 2005 10:36:45 +0200 (MEST) Original-Received: from [212.209.42.132] by piraten.student.lu.se (mshttpd); Wed, 06 Jul 2005 10:36:45 +0200 Original-To: Jason Rumney X-Mailer: iPlanet Messenger Express 5.2 HotFix 1.14 (built Mar 18 2003) Content-language: sv Content-disposition: inline X-Accept-Language: sv Priority: normal 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:40497 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40497 From: Jason Rumney > You also need to remove the hook whenever Emacs crashes. That is more > difficult, and the reason why I would be reluctant to start playing Yes, that is very important I guess. Are there not any exception handlers capable of handling this in Emacs? > If my reading of the docs is correct, this will prevent Emacs from > seeing lwindow keys altogether. If you return true from a low level > keyboard hook, you must handle the key inside the hook. Since you want > to use lwindow as a modifier key, you'll then need to handle all the > keys that it modifies in the hook as well, and you'll end up doing all > your own keyboard mapping, as Eli said. Eh, thanks, forgot to send it on. Argumenting is not always easy when you get much resistance. As I said earlier this could perhaps be done with a private message that is the equivalence of WM_KEYDOWN for just . But maybe then the modifiers must be handled as well? Could the message instead just be repackaged and sent on to the emacs keyboard thread for ? Does that interfere with message order if SendMessage is used?