(wl-icon-dir): Default to $(data-directory)/wl/icons/ when Emacs 21 is running.
authoryamaoka <yamaoka>
Mon, 2 Oct 2000 12:43:07 +0000 (12:43 +0000)
committeryamaoka <yamaoka>
Mon, 2 Oct 2000 12:43:07 +0000 (12:43 +0000)
wl/wl-vars.el

index f464b17..b6a0384 100644 (file)
@@ -155,8 +155,12 @@ If you don't have multiple e-mail addresses, you don't have to set this."
   :group 'wl)
 
 (defcustom wl-icon-dir (if (fboundp 'locate-data-directory)
-                          (locate-data-directory "wl"))
-  "*Icon directory (XEmacs)."
+                          (locate-data-directory "wl")
+                        (let ((icons (expand-file-name "wl/icons/"
+                                                       data-directory)))
+                          (if (file-directory-p icons)
+                              icons)))
+  "*Icon directory (XEmacs or Emacs 21)."
   :type '(choice (const :tag "none" nil)
                 string)
   :group 'wl)