csys fixes: merge zero actions, remove-from-plist: missing parameter; threshold: default 1
This commit is contained in:
parent
f3e3af8e0b
commit
e0384a9108
2 changed files with 5 additions and 5 deletions
|
|
@ -128,8 +128,8 @@
|
||||||
|
|
||||||
;;;; action handlers
|
;;;; action handlers
|
||||||
|
|
||||||
(defun basic-actions ()
|
(defun basic-actions (&key (threshold 1))
|
||||||
(list :value (value-add)
|
(list :value (value-add :threshold threshold)
|
||||||
:create (create)
|
:create (create)
|
||||||
:connect (connect)
|
:connect (connect)
|
||||||
:next (no-op :no-forward t)))
|
:next (no-op :no-forward t)))
|
||||||
|
|
@ -187,7 +187,7 @@
|
||||||
(let ((args+ (if name
|
(let ((args+ (if name
|
||||||
`(:addr ,(list domain cat name))
|
`(:addr ,(list domain cat name))
|
||||||
`(:categ ,(list domain cat)))))
|
`(:categ ,(list domain cat)))))
|
||||||
(setf args (alx:remove-from-plist :domain :cat :name))
|
(setf args (alx:remove-from-plist args :domain :cat :name))
|
||||||
(actor:send cell
|
(actor:send cell
|
||||||
(message:create (list domain :create) :data (append args+ args)))))
|
(message:create (list domain :create) :data (append args+ args)))))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -70,8 +70,8 @@
|
||||||
':default (csys:std-proc :actions (csys:basic-actions)))))
|
':default (csys:std-proc :actions (csys:basic-actions)))))
|
||||||
|
|
||||||
(defun actions-zero-initial ()
|
(defun actions-zero-initial ()
|
||||||
(util:plist-merge (list :next (next-zero-initial))
|
(util:plist-merge (csys:basic-actions)
|
||||||
(csys:basic-actions)))
|
(list :next (next-zero-initial))))
|
||||||
|
|
||||||
(defun next-zero-initial ()
|
(defun next-zero-initial ()
|
||||||
(lambda (msg scope)
|
(lambda (msg scope)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue