From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: andrew.maguire@ps.ge.com Newsgroups: gmane.emacs.help Subject: menu entries missing display of equivalent keyboard sequence when function keys are used as prefix keys Date: Fri, 10 Jan 2003 14:23:23 -0500 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <6192367D59F8904CA553579EF41FEEA03E4D14@ukcbgx01psge.geips.ge.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: main.gmane.org 1042226819 8657 80.91.224.249 (10 Jan 2003 19:26:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 10 Jan 2003 19:26:59 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18X4nx-0002FV-00 for ; Fri, 10 Jan 2003 20:26:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18X4oe-000754-03 for gnu-help-gnu-emacs@m.gmane.org; Fri, 10 Jan 2003 14:27:40 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18X4oB-0006oh-00 for help-gnu-emacs@gnu.org; Fri, 10 Jan 2003 14:27:11 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18X4ms-0006G3-00 for help-gnu-emacs@gnu.org; Fri, 10 Jan 2003 14:25:54 -0500 Original-Received: from ext-nj2gw-2.online-age.net ([216.35.73.164]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18X4mS-0005E9-00 for help-gnu-emacs@gnu.org; Fri, 10 Jan 2003 14:25:24 -0500 Original-Received: from int-nj2gw-2.online-age.net (int-nj2gw-2 [3.159.236.66]) h0AJPG6u017362 for ; Fri, 10 Jan 2003 14:25:17 -0500 (EST) Original-Received: from nyschx06psge.ps.ge.com (localhost [127.0.0.1]) id h0AJP9oh000514 for ; Fri, 10 Jan 2003 14:25:11 -0500 (EST) Original-Received: by nyschx06psge.ps.ge.com with Internet Mail Service (5.5.2653.19) id ; Fri, 10 Jan 2003 14:27:24 -0500 Original-To: help-gnu-emacs@gnu.org X-Mailer: Internet Mail Service (5.5.2653.19) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5335 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5335 The following code defines a simple function and creates a keyboard shortcut, F8 d, to execute it. It then also creates a menu, Andrew, and adds an entry, My function, to this menu. On Emacs 20.7 (Unix and Windows), the Menu entry correctly has the keyboard short cut listed but Emacs 21.2 (Unix and Windows) it does not. It seems to be only when function keys are defined to be prefix keys. I presume that there is something different in the process that automatically sets up the keyboard shortcut entries. I have submitted this to gnu.emacs.bug but I just wondered if anyone on this mailing list can help? (defun andrew-fn () "Test" (interactive) (message "Hello")) (progn (setq andrew-map (make-sparse-keymap "Andrew")) (put 'andrew-fn 'menu-enable t) (define-key andrew-map [andrew-function] '("My function" . andrew-fn)) (define-key global-map [menu-bar andrew] andrew-map) (define-key-after (lookup-key global-map [menu-bar]) [andrew] (cons "Andrew" andrew-map) 'dev) (setq f8-map (make-sparse-keymap)) (fset 'f8-map f8-map) (define-key f8-map "d" 'andrew-fn) (define-key global-map [f8] 'f8-map) ) Thanks, Andrew