From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@gmx.net (=?iso-8859-1?q?Kai_Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: lRe: MS Windows "Alt-Menu" support Date: Tue, 12 Aug 2003 20:31:25 +0200 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84wudiybgi.fsf@slowfox.is.informatik.uni-duisburg.de> References: <84vft8t1nd.fsf@slowfox.is.informatik.uni-duisburg.de> <8cWYa.151156$XV.8022781@twister.austin.rr.com> <84bruz87zj.fsf@slowfox.is.informatik.uni-duisburg.de> <84k79l2rfn.fsf@slowfox.is.informatik.uni-duisburg.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1060714068 607 80.91.224.253 (12 Aug 2003 18:47:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Aug 2003 18:47:48 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 12 20:47:47 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19meBP-0005Ru-00 for ; Tue, 12 Aug 2003 20:47:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19me9B-0005J8-JO for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Aug 2003 14:45:29 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!pd9e1e499.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-NNTP-Posting-Host: pd9e1e499.dip.t-dialin.net (217.225.228.153) Original-X-Trace: news.uni-berlin.de 1060713086 34162983 217.225.228.153 (16 [73968]) Mail-Copies-To: never User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:T8GXoWE75Azhv/FiRBdvCuyCKuM= Original-Xref: shelby.stanford.edu gnu.emacs.help:115843 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11761 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11761 "Herb Martin" writes: > On alt-down-key set a flag that says 'no-menu'; > but if no key is pressed, clear the flag or set 'alt-menu' > instead. Then on Alt-up, look at flag and use that > code we saw before to activate the menu. Yes, something like this. In src/xterm.c there is a function handle_one_xevent which seems to be the right place to start. There, you get KeyPress and KeyRelease events which you can intercept. That would be the X11 case, though. I guess that means that src/w32term.c is the right file. But looking I find src/w32inevt.c which skips key-up events. -- Two cafe au lait please, but without milk.