With Gerd's help, I've hammered on the PSGML stuff a little more. I've
got one puzzling problem that I hope somebody here can help me with.
The code in psgml-html.el attempts to subsume the SGML menu under the
HTML menu, like this:
------------------------------------------------------------------------
(define-derived-mode html-mode sgml-mode "HTML"
...
; sigh ... need to call this now to get things working.
(sgml-build-custom-menus)
;; (add-submenu nil sgml-html-menu "SGML")
(easy-menu-add sgml-html-menu)
(unless (featurep 'infodock)
(delete-menu-item '("SGML"))))
(defvar sgml-html-menu
(cons "HTML"
(append '(["View in Netscape" sgml-html-netscape-file
(buffer-file-name
(current-buffer))]
["View in W3" w3-preview-this-buffer t]
["View in kfm" sgml-html-kfm-file
(buffer-file-name (current-buffer))]
"---"
["HTML-Quote Region" html-quote-region t]
"---"))))
(cdr sgml-main-menu))))
------------------------------------------------------------------------
That worked fine before, but it's acting strangely now. The symptoms
are:
- When HTML mode is started, the HTML menu exists, and lists all the
top-level items from the SGML menu. However, the SGML menu has
submenus, named "File Options" and "User Options". These submenus
are empty under the HTML menu.
- When HTML mode is started, there is no SGML menu. However, the
moment one clicks anywhere on the menubar, the SGML menu appears. It
contains *only* its two submenus; the other items are gone. However,
the submenus contain all of the right stuff; exactly the stuff
missing from the same submenus on the HTML menu.
- After making the SGML menu appear in HTML mode, the SGML menu pops up
(apparently at random; at least, I've discerned no pattern) when in
buffers of non-SGML related modes, still containing only its two
submenus.
I'm running XEmacs 21.1.9 with the latest set of packages. Thanks for
any suggestions you can provide.
--
Jerry James