bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: menu entries missing display of equivalent keyboard sequence


From: andrew . maguire
Subject: RE: menu entries missing display of equivalent keyboard sequence
Date: Fri, 20 Dec 2002 12:29:40 -0500

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:
> <down> <return> <help-echo> <down-mouse-2> <help-echo> 
> <mouse-2> <down-mouse-1> <mouse-1> <next> <next> <next> 
> <prior> <prior> <C-home> <next> <next> <next> <next> 
> <next> <next> <next> 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 <down> 
> <next> 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 <down> 
> <down> <down> <down> <down> <down> <down> <down> <down> 
> <down> <help-echo> <down-mouse-1> <mouse-1> C-h C-g 
> C-x b * i n <tab> <return> <prior> <help-echo> <help-echo> 
> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
> <help-echo> <menu-bar> <help-menu> <report-emacs-b
> 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
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]