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

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

displaying menu with x-popup-menu


From: Klaus Berndl
Subject: displaying menu with x-popup-menu
Date: 29 Sep 2003 18:37:48 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

I have defined the following menu:

(keymap
 (d8 "berndl" . ignore)
 (d7 "tanja" . ignore)
 (d6 "sdm-submenu" keymap
     (d4 "sdm-3" . ignore)
     (d3 "---")
     (d2 "sdm-2" . ignore)
     (d1 "sdm-1" . ignore)
     "sdm-submenu")
 (d5 "sylvie" . ignore)
 (d4 "---")
 (d3 "beate" . ignore)
 (d2 "---")
 (d1 "klaus" . ignore)
 "test-menu")

You see this is a keymap and if i run x-popup-menu with this keymap then the
menu is displayed correctly with one exception: Every real menu-entry displays
the string "(<language-change>)" after the menu-entry-name, e.g.
"klaus (<language-change>)". I have added the keymap above to a variable named
my-menu-keymap and before running x-popup-menu the value of `my-menu-keymap'
is as above but after running x-popup-menu the value is:

(keymap
 (d8 "berndl"
     ([language-change]
      . "  (<language-change>)")
     . ignore)
 (d7 "tanja"
     ([language-change]
      . "  (<language-change>)")
     . ignore)
 (d6 "sdm-submenu" keymap
     (d4 "sdm-3"
         ([language-change]
          . "  (<language-change>)")
         . ignore)
     (d3 "---")
     (d2 "sdm-2"
         ([language-change]
          . "  (<language-change>)")
         . ignore)
     (d1 "sdm-1"
         ([language-change]
          . "  (<language-change>)")
         . ignore)
     "sdm-submenu")
 (d5 "sylvie"
     ([language-change]
      . "  (<language-change>)")
     . ignore)
 (d4 "---")
 (d3 "beate"
     ([language-change]
      . "  (<language-change>)")
     . ignore)
 (d2 "---")
 (d1 "klaus"
     ([language-change]
      . "  (<language-change>)")
     . ignore)
 "test-menu")

You see the added "(<language-change>)"?!

Can anybody explain me this? What I'm doing wrong?

Thanks a lot,
Klaus
 

-- 
Klaus Berndl                    mailto: address@hidden
sd&m AG                         http://www.sdm.de
software design & management    
Thomas-Dehler-Str. 27, 81737 M√ľnchen, Germany
Tel +49 89 63812-392, Fax -220


reply via email to

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