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.bugs Subject: RE: menu entries missing display of equivalent keyboard sequence Date: Fri, 20 Dec 2002 12:29:40 -0500 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <6192367D59F8904CA553579EF41FEEA02CC8BA@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 1040405525 16974 80.91.224.249 (20 Dec 2002 17:32:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 20 Dec 2002 17:32:05 +0000 (UTC) Cc: andrew.maguire@ps.ge.com 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 18PR0F-0004Pa-00 for ; Fri, 20 Dec 2002 18:32:03 +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 18PR0U-00069V-01 for gnu-bug-gnu-emacs@m.gmane.org; Fri, 20 Dec 2002 12:32:18 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18PR0I-00068E-00 for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2002 12:32:06 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18PR0G-00067e-00 for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2002 12:32:05 -0500 Original-Received: from ext-nj2gw-1.online-age.net ([216.35.73.163]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18PQzY-0005vJ-00 for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2002 12:31:20 -0500 Original-Received: from int-nj2gw-2.online-age.net (int-nj2gw-2.online-age.net [3.159.236.66])gBKHVDbf002409 for ; Fri, 20 Dec 2002 12:31:13 -0500 (EST) Original-Received: from nyschx06psge.ps.ge.com (localhost [127.0.0.1]) id gBKHV6D2025685 for ; Fri, 20 Dec 2002 12:31:07 -0500 (EST) Original-Received: by nyschx06psge.ps.ge.com with Internet Mail Service (5.5.2653.19) id ; Fri, 20 Dec 2002 12:32:05 -0500 Original-To: bug-gnu-emacs@gnu.org X-Mailer: Internet Mail Service (5.5.2653.19) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4066 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4066 Here is some example lisp that works in 20.7 but not in 21.2 (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 "F" nil) (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) ) > -----Original Message----- > From: Andrew Maguire [mailto:Andrew.Maguire@Smallworld.co.uk] > Sent: 20 December 2002 15:42 > To: bug-gnu-emacs@gnu.org; Maguire, Andrew (PS, GENS) > Subject: menu entries missing display of equivalent keyboard sequence > > > This bug report will be sent to the Free Software Foundation, > not to your local site managers! > Please write in English, because the Emacs maintainers do not have > translators to read other languages for them. > > Your bug report will be posted to the bug-gnu-emacs@gnu.org > mailing list, > and to the gnu.emacs.bug news group. > > In GNU Emacs 21.2.1 (sparc-sun-solaris2.6, X toolkit) > of 2002-07-11 on albany > configured using `configure --libexecdir=/usr/local/lib' > Important settings: > value of $LC_ALL: nil > value of $LC_COLLATE: en_GB.ISO8859-15 > value of $LC_CTYPE: en_GB.ISO8859-15 > value of $LC_MESSAGES: C > value of $LC_MONETARY: en_GB.ISO8859-15 > value of $LC_NUMERIC: en_GB.ISO8859-15 > value of $LC_TIME: en_GB.ISO8859-15 > value of $LANG: en_GB.ISO8859-15 > locale-coding-system: iso-latin-9 > default-enable-multibyte-characters: t > > Please describe exactly what actions triggered the bug > and the precise symptoms of the bug: > > The code I have defines various global keys, creates a couple of > menu-bar general entries and some major mode specific ones > but the menu entries do not show their equivalent keyboard shortcuts. > (Apart from one that is defined on f1.) I am just using the simple > method for defining menu entries i.e. I am not using (menu-item ...). > > The problem alsoo occurs on the Windows build 21.2.1 on buffy. > The menu entries for the standard menus is there, Fil, Edit, Help etc. > It just seems that the is something up with the mechanism that > calculates the shortcut keys and the caching in the keymap definition. > > My code is fine on Emacs 20.7. > > Can I force a recalculation of the caching of keysequences? > > Thanks in advance, > > Andrew Maguire > > Recent input: > > > > C-s c o n s C-s C-s C-s C-s C-s > C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s > C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s > C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s > > C-h C-g > C-x b * i n > > ug> > > Recent messages: > setq: Quit [2 times] > Starting gis version selection... > > Type C-x 1 to remove help window. C-M-v to scroll the help. > call-interactively: Quit > list: Quit > sw-half-scroll-down: Beginning of buffer > Mark set > Mark saved where search started [2 times] > Loading emacsbug...done >