From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bruce Ingalls Newsgroups: gmane.emacs.help Subject: Re: MS Windows "Alt-Menu" support Date: Thu, 07 Aug 2003 16:47:02 GMT Organization: Road Runner - NYC Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1060275693 8774 80.91.224.253 (7 Aug 2003 17:01:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 7 Aug 2003 17:01:33 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 07 19:01:57 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 19ko9E-0004ry-00 for ; Thu, 07 Aug 2003 19:01:56 +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 19ko7q-0006EM-Dq for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Aug 2003 13:00:30 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.telusplanet.net!newsfeed.telus.net!news3.optonline.net!cyclone.rdc-nyc.rr.com!news-out.nyc.rr.com!twister.nyc.rr.com.POSTED!53ab2750!not-for-mail User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 37 Original-NNTP-Posting-Host: 24.168.133.129 Original-X-Complaints-To: abuse@rr.com Original-X-Trace: twister.nyc.rr.com 1060274822 24.168.133.129 (Thu, 07 Aug 2003 12:47:02 EDT) Original-NNTP-Posting-Date: Thu, 07 Aug 2003 12:47:02 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:115731 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:11650 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11650 Javier Oviedo wrote: > I was given the function below from someone on this newsgroup. I bind this > function to M-` (Alt-`) and then type the letter of the particular menu item > to bring that up....arrow keys also work. I hope this is helpful. > > M-` F ==> File > M-` E ==> Edit > ... > > ;;; Emulate ALT+ > (defun jbr-w32-simulate-Alt-tap () > (interactive) > (w32-send-sys-command 61696)) > ;;; Nice code! I tried to bind it as follows, but could not get it to work: (defun edit-menu () (interactive) (w32-send-sys-command 61696) (insert "e") ) (global-set-key [(meta e)] 'edit-menu) I also tried (process-send-string nil "e") but nil is not the right process. I'd also have to figure out how to send a cursor down. It would also be nice to port this code to Linux. >>Obviously Alt-F File, Alt-H Help, etc., conflict with >>other Meta key sequences. So I just make this a M-x customize option. Note: XEmacs sometimes supports alt- menu key bindings