error when locate-data-directory undefined.
+2005-08-15 TAKAHASHI Kaoru <kaoru@kaisei.org>
+
+ * riece-options.el (riece-data-directory): Avoid compile time
+ error when locate-data-directory undefined.
+
2005-08-15 Daiki Ueno <ueno@unixuser.org>
* riece-options.el (riece-quit-timeout): Set default to 1.
:group 'riece-options)
(defcustom riece-data-directory
- (if (fboundp 'locate-data-directory)
- (locate-data-directory "riece")
- (file-name-directory (locate-library (symbol-file 'riece-data-directory))))
+ (cond ((fboundp 'locate-data-directory)
+ (locate-data-directory "riece"))
+ ((symbol-file 'riece-data-directory)
+ (file-name-directory
+ (locate-library (symbol-file 'riece-data-directory))))
+ (t
+ (expand-file-name "riece" data-directory)))
"Where to look for data files."
:type 'directory
:group 'riece-options)