+2005-09-24 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
+
+ * elmo-search.el (elmo-search-namazu-index): Fixed the order to
+ decide index.
+
2005-09-20 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
* elmo-search.el (elmo-search-engine-alist): Define with defvar;
(defun elmo-search-namazu-index (engine)
(let* ((param (elmo-search-engine-param-internal engine))
- (index (cond ((cdr (assoc param
- elmo-search-namazu-index-alias-alist)))
- ((eq (length param) 0)
- elmo-search-namazu-default-index-path)
- (t
- param))))
+ (index (cond
+ ((cdr (assoc param elmo-search-namazu-index-alias-alist)))
+ ((and param (> (length param) 0))
+ param)
+ (t
+ elmo-search-namazu-default-index-path))))
(if (listp index)
(mapcar 'expand-file-name index)
(expand-file-name index))))