2005-08-25 Daiki Ueno <ueno@unixuser.org>
+ * riece-addon.el (riece-command-list-addons): Use
+ riece-addon-dependencies instead of riece-addons.
+ (riece-command-enable-addon): Ditto.
+ (riece-command-disable-addon): Ditto.
+
+2005-08-25 Daiki Ueno <ueno@unixuser.org>
+
* riece.el (riece): Don't override riece-addons setting.
* riece-globals.el (riece-addon-dependencies): New variable.
(riece-addon-list-mode)
(let ((inhibit-read-only t)
buffer-read-only
- (pointer (sort (copy-sequence riece-addons)
- (lambda (symbol1 symbol2)
- (string-lessp (symbol-name symbol1)
- (symbol-name symbol2)))))
+ (pointer (sort (copy-sequence riece-addon-dependencies)
+ (lambda (dependency1 dependency2)
+ (string-lessp (symbol-name (car dependency1))
+ (symbol-name (car dependency2))))))
enabled description point)
(erase-buffer)
(riece-kill-all-overlays)
(while pointer
- (setq enabled (intern-soft (concat (symbol-name (car pointer))
+ (setq enabled (intern-soft (concat (symbol-name (car (car pointer)))
"-enabled"))
- description (intern-soft (concat (symbol-name (car pointer))
+ description (intern-soft (concat (symbol-name (car (car pointer)))
"-description")))
(setq point (point))
(insert (format "%c %S: %s\n"
- (if (not (featurep (car pointer)))
+ (if (not (featurep (car (car pointer))))
??
(if (null enabled)
?!
(if (symbol-value enabled)
?+
?-)))
- (car pointer)
+ (car (car pointer))
(if description
(symbol-value description)
"(no description)")))
- (put-text-property point (point) 'riece-addon (car pointer))
+ (put-text-property point (point) 'riece-addon (car (car pointer)))
(setq pointer (cdr pointer)))
(insert "
Symbols in the leftmost column:
(get-text-property (point) 'riece-addon))
(intern-soft
(completing-read "Add-on: "
- (mapcar (lambda (addon)
- (list (symbol-name addon)))
- riece-addons)
+ (mapcar (lambda (dependency)
+ (list (symbol-name (car dependency))))
+ riece-addon-dependencies)
(lambda (pointer)
(let ((enabled
(intern-soft (concat (car pointer)
(get-text-property (point) 'riece-addon))
(intern-soft
(completing-read "Add-on: "
- (mapcar (lambda (addon)
- (list (symbol-name addon)))
- riece-addons)
+ (mapcar (lambda (dependency)
+ (list (symbol-name (car dependency))))
+ riece-addon-dependencies)
(lambda (pointer)
(let ((enabled
(intern-soft (concat (car pointer)