Commits

Aidan Kehoe committed 45d01fc

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

ChangeLog addition:

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

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

Comments (0)

Files changed (2)

+2011-12-31  Aidan Kehoe  <kehoea@parhasard.net>
+
+	* eudc.el (eudc-custom-generated-menu):
+	Only call #'custom-menu-create if the menubar is available; avoids
+	compilation problems when this code is evaluated as a result of
+	(require 'eudc).
+
 2007-10-13  Norbert Koch  <viteno@xemacs.org>
 
 	* Makefile (VERSION): XEmacs package 1.40 released.
 	map))
 (set-keymap-parent eudc-mode-map widget-keymap)
 
-(defconst eudc-custom-generated-menu (cdr (custom-menu-create 'eudc)))
+(defconst eudc-custom-generated-menu (and (featurep 'menubar)
+                                          (cdr (custom-menu-create 'eudc))))
 
 (defconst eudc-tail-menu 
   `("---"