This is annoying me a little as I build the website.
# HG changeset patch
# User Aidan Kehoe <kehoea(a)parhasard.net>
# Date 1488571937 0
# Fri Mar 03 20:12:17 2017 +0000
# Node ID 62b07faa58ac420b3d5d4703bf994098dd60e4ec
# Parent 4082c3ff2ff190bb0b506fdf4fe48d1d697fde4e
Only remove SGML from the menu if we have menubar support, #'html-mode
2017-03-03 Aidan Kehoe <kehoea(a)parhasard.net>
* psgml-html.el (html-mode):
Only remove SGML from the menu if we have menubar support, avoid
annoying backtraces on TTY-only builds.
diff -r 4082c3ff2ff1 -r 62b07faa58ac ChangeLog
--- a/ChangeLog Sun Jun 29 21:46:49 2014 +0200
+++ b/ChangeLog Fri Mar 03 20:12:17 2017 +0000
@@ -1,3 +1,9 @@
+2017-03-03 Aidan Kehoe <kehoea(a)parhasard.net>
+
+ * psgml-html.el (html-mode):
+ Only remove SGML from the menu if we have menubar support, avoid
+ annoying backtraces on TTY-only builds.
+
2014-06-29 Norbert Koch <viteno(a)xemacs.org>
* Makefile (VERSION): XEmacs package 1.49 released.
diff -r 4082c3ff2ff1 -r 62b07faa58ac psgml-html.el
--- a/psgml-html.el Sun Jun 29 21:46:49 2014 +0200
+++ b/psgml-html.el Fri Mar 03 20:12:17 2017 +0000
@@ -313,7 +313,7 @@
(setq sgml-menu-name "HTML")
(easy-menu-add sgml-html-menu)
(html-helper-rebuild-menu)
- (unless (featurep 'infodock)
+ (unless (or (featurep 'infodock) (not (featurep 'menubar)))
(delete-menu-item '("SGML"))))
(defvar html-helper-imenu-regexp
--
‘As I sat looking up at the Guinness ad, I could never figure out /
How your man stayed up on the surfboard after forty pints of stout’
(C. Moore)