Commits

Aidan Kehoe committed f51cb68

Avoid calling menu-specific code at compile time if no menubar, W3.

ChangeLog addition:

2011-12-31 Aidan Kehoe <kehoea@parhasard.net>

* lisp/w3-menu.el (w3-menu-edit-menu):
Only call #'custom-menu-create if the menubar is available; avoids
compilation problems when this code is evaluated as a result of
(require 'w3-menu).

  • Participants
  • Parent commits 621158a

Comments (0)

Files changed (2)

+2011-12-31  Aidan Kehoe  <kehoea@parhasard.net>
+
+	* lisp/w3-menu.el (w3-menu-edit-menu):
+	Only call #'custom-menu-create if the menubar is available; avoids
+	compilation problems when this code is evaluated as a result of
+	(require 'w3-menu).
+
 2008-07-23  Norbert Koch  <viteno@xemacs.org>
 
 	* Makefile (VERSION): XEmacs package 1.35 released.
    "----"
    (list
     "Preferences"
-    (if (fboundp 'custom-menu-create)
+    (if (and (featurep 'menubar) (fboundp 'custom-menu-create))
 	(custom-menu-create 'w3)
       ["W3" ignore nil])
-    (if (fboundp 'custom-menu-create)
+    (if (and (featurep 'menubar) (fboundp 'custom-menu-create))
 	(custom-menu-create 'url)
       ["URL" ignore nil])
     )