Subject: 24.0.50; :keys misaligns keyboard equivalents

From: "Drew Adams" <[email-masked]>
Date: Sat, 3 Jul 2010 09:59:38 -0700

emacs -Q
 
This bug is a regression, starting with Emacs 23.2.  There is no such
bug in Emacs 23.1, Emacs 22, 21, or 20.
 
See attached screenshots.
 
:key was used only for the menu item `Current Status, Mode Help'; the
other menu items do not use :key.  You can see that the `?' is
misaligned: it is too far to the left.
 
The screenshot `throw-emacs-23-1-keys-OK.png' shows what Emacs 23.1
gives - the alignment is OK.  Emacs 22, 21, and 20 are similar.
 
These are the relevant code lines, for context:
 
(define-key bmkp-bmenu-menubar-menu [bmkp-bmenu-quit]
  '(menu-item "Quit" bmkp-bmenu-quit
    :help "..."))
(define-key bmkp-bmenu-menubar-menu [bmkp-bmenu-describe-marked]
  '(menu-item "Describe Marked Bookmarks" bmkp-bmenu-describe-marked
    :help "..."))
(define-key bmkp-bmenu-menubar-menu [bmkp-bmenu-describe-this-bookmark]
  '(menu-item "Describe This Bookmark" bmkp-bmenu-describe-this-bookmark
    :help "..."))
(define-key bmkp-bmenu-menubar-menu [bmkp-bmenu-mode-status-help]
  '(menu-item "Current Status, Mode Help" bmkp-bmenu-mode-status-help :keys "?"
    :help "..."))
(define-key bmkp-bmenu-menubar-menu [top-sep2] '("--"))
(define-key bmkp-bmenu-menubar-menu [bmkp-toggle-saving-menu-list-state]
  '(menu-item "Toggle Autosaving Display State"
bmkp-toggle-saving-menu-list-state
    :help "..."))
 
In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2010-06-28 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4) --no-opt --cflags -Ic:/xpm/include'