Subject: bug#179: 23.0.60; Menu separators are not displayed

From: David Kastrup <[email-masked]>
Date: Thu, 01 May 2008 23:56:22 +0200

Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the [email-masked] mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

I have a menu looking like

preview-menu's value is shown below.

Documentation:
This is the menu for preview-latex.

Value: 
(keymap "Preview"
	(nil menu-item "Generate previews")
	(\(or\ toggle\)\ at\ point menu-item "(or toggle) at point" preview-at-point
	 ([3 16 16]
	  . "  C-c C-p C-p"))
	(for\ environment menu-item "for environment" preview-environment
			  ([3 16 5]
			   . "  C-c C-p C-e"))
	(for\ section menu-item "for section" preview-section
		      ([3 16 19]
		       . "  C-c C-p C-s"))
	(for\ region menu-item "for region" preview-region
		     ([3 16 18]
		      . "  C-c C-p C-r")
		     :enable
		     (preview-mark-active))
	(for\ buffer menu-item "for buffer" preview-buffer
		     ([3 16 2]
		      . "  C-c C-p C-b"))
	(for\ document menu-item "for document" preview-document
		       ([3 16 4]
			. "  C-c C-p C-d"))
	(nil menu-item "---")
	(nil menu-item "Remove previews")
	(at\ point menu-item "at point" preview-clearout-at-point
		   ([3 16 3 16]
		    . "  C-c C-p C-c C-p"))
	(from\ section menu-item "from section" preview-clearout-section
		       ([3 16 3 19]
			. "  C-c C-p C-c C-s"))
	(from\ region menu-item "from region" preview-clearout
		      ([3 16 3 18]
		       . "  C-c C-p C-c C-r")
		      :enable
		      (preview-mark-active))
	(from\ buffer menu-item "from buffer" preview-clearout-buffer
		      ([3 16 3 2]
		       . "  C-c C-p C-c C-b"))
	(from\ document menu-item "from document" preview-clearout-document
			([3 16 3 4]
			 . "  C-c C-p C-c C-d"))
	(nil menu-item "---")
	(nil menu-item "Turn preamble cache")
	(on menu-item "on" preview-cache-preamble
	    ([3 16 6]
	     . "  C-c C-p C-f"))
	(off menu-item "off" preview-cache-preamble-off
	     ([3 16 3 6]
	      . "  C-c C-p C-c C-f"))
	(nil menu-item "---")
	(Customize menu-item "Customize"
		   (keymap "Customize"
			   (Browse\ options menu-item "Browse options" menu-function-194
					    (nil)
					    :key-sequence nil)
			   (Extend\ this\ menu menu-item "Extend this menu" menu-function-195
					       (nil)
					       :key-sequence nil)))
	(Read\ documentation menu-item "Read documentation" preview-goto-info-page
			     ([3 16 9]
			      . "  C-c C-p TAB"))
	(Report\ Bug menu-item "Report Bug" preview-report-bug
		     (nil)))

[back]

and neither the separator lines nor the separator titles are shown.
This menu was generated using

  (easy-menu-define preview-menu LaTeX-mode-map
    "This is the menu for preview-latex."
    '("Preview"
      "Generate previews"
      ["(or toggle) at point" preview-at-point]
      ["for environment" preview-environment]
      ["for section" preview-section]
      ["for region" preview-region (preview-mark-active)]
      ["for buffer" preview-buffer]
      ["for document" preview-document]
      "---"
      "Remove previews"
      ["at point" preview-clearout-at-point]
      ["from section" preview-clearout-section]
      ["from region" preview-clearout (preview-mark-active)]
      ["from buffer" preview-clearout-buffer]
      ["from document" preview-clearout-document]
      "---"
      "Turn preamble cache"
      ["on" preview-cache-preamble]
      ["off" preview-cache-preamble-off]
      "---"
      ("Customize"
       ["Browse options"
	(customize-group 'preview)]
       ["Extend this menu"
	(easy-menu-add-item
	 nil '("Preview")
	 (customize-menu-create 'preview))])
      ["Read documentation" preview-goto-info-page]
      ["Report Bug" preview-report-bug]))

In GNU Emacs 23.0.60.8 (i686-pc-linux-gnu, GTK+ Version 2.12.9)
 of 2008-05-01 on lola
Windowing system distributor `The X.Org Foundation', version 11.0.10400090
configured using `configure  '--prefix=/usr/local/emacs-21' '--without-toolkit-scroll-bars' 'CFLAGS=-g -O2 -fno-crossjumping''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: LaTeX

Minor modes in effect:
  reftex-mode: t
  desktop-save-mode: t
  minibuffer-electric-default-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<up> <up> <up> <up> <up> <up> <right> <right> <down> 
<down> <down> <down> <down> <down> <up> <up> <up> <up> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <up> <up> <up> <up> <up> <up> <up> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> C-x k 
<return> C-x b b o g <backspace> <backspace> i f <backspace> 
g o <backspace> f o <tab> <return> < C-/ <escape> < 
C-s h y p p <backspace> e r r e f C-s C-s C-s <down> 
<down> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> C-x b p r e v <tab> 
<backspace> <backspace> C-g C-x o C-x C-f / h o m e 
p <backspace> / t m p / a u c t e x / p r e v i e w 
/ p r v - e m <tab> <return> C-x 1 C-g C-s o n <up> 
C-s m e n u C-s C-s C-s <down> <up> C-x b C-g C-x C-f 
m e n <backspace> <backspace> <backspace> p r e v i 
e w . e l <tab> <return> C-s m e n u C-s C-s C-s C-s 
C-s C-s <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> C-h v p r e v i e w - m e n <tab> <return> 
C-x o <next> <next> <next> C-x b b i g f o o t . t 
e <backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
d i s s . t e x <return> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <menu-bar> <help-menu> <se
nd-emacs-bug-report>

Recent messages:
Quit
Note: file is write protected
Undo!
Mark set
Mark saved where search started
Quit [2 times]
Mark saved where search started [2 times]
Quit
Mark saved where search started
Type C-x 1 to delete the help window, C-M-v to scroll help.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum