+2005-09-20 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
+
+ * elmo-search.el (elmo-search-engine-alist): Define with defvar;
+ Set default value as nil.
+ (toplevel): Register search engines by
+ `elmo-search-register-engine' if there are not defined.
+
+ * elmo.el (autoload): Added autoload setting for
+ `elmo-search-register-engine'.
+
2005-09-17 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
* elmo.el (toplevel): `[' is redefined as the prefix of the search
(other :tag "Use" t))
:group 'elmo)
-(defcustom elmo-search-engine-alist
- '((namazu local-file
- :prog "namazu"
- :args ("--all" "--list" "--early" pattern elmo-search-namazu-index)
- :charset 'iso-2022-jp)
- (grep local-file
- :prog "grep"
- :args ("-l" "-e" pattern elmo-search-grep-target)))
+(defvar elmo-search-engine-alist nil
"*An alist of search engines.
Each element looks like (ENGINE CLASS PROPERTIES...)
ENGINE is a symbol, the name of the search engine.
CLASS is a symbol, the class name that performs a search.
-PROPERTIES is a plist, it configure an engine with the CLASS."
- :group 'elmo)
+PROPERTIES is a plist, it configure an engine with the CLASS.")
(defcustom elmo-search-default-engine 'namazu
"*Default search engine for elmo-search folder."
files))
+;;; Setup `elmo-search-engine-alist'
+(unless noninteractive
+ (or (assq 'namazu elmo-search-engine-alist)
+ (elmo-search-register-engine
+ 'namazu 'local-file
+ :prog "namazu"
+ :args '("--all" "--list" "--early" pattern elmo-search-namazu-index)
+ :charset 'iso-2022-jp))
+ (or (assq 'grep elmo-search-engine-alist)
+ (elmo-search-register-engine
+ 'grep 'local-file
+ :prog "grep"
+ :args '("-l" "-e" pattern elmo-search-grep-target))))
+
(require 'product)
(product-provide (provide 'elmo-search) (require 'elmo-version))
(autoload 'elmo-get-global-flags "elmo-flag")
(autoload 'elmo-global-flags-initialize "elmo-flag")
(autoload 'elmo-global-mark-migrate "elmo-flag")
- (autoload 'elmo-folder-list-global-flag-messages "elmo-flag"))
+ (autoload 'elmo-folder-list-global-flag-messages "elmo-flag")
+ (autoload 'elmo-search-register-engine "elmo-search"))
(defun elmo-define-folder (prefix backend)
"Define a folder.