csys fixes: merge zero actions, remove-from-plist: missing parameter; threshold: default 1

This commit is contained in:
Helmut Merz 2026-07-29 14:39:52 +02:00
parent f3e3af8e0b
commit e0384a9108
2 changed files with 5 additions and 5 deletions

View file

@ -128,8 +128,8 @@
;;;; action handlers
(defun basic-actions ()
(list :value (value-add)
(defun basic-actions (&key (threshold 1))
(list :value (value-add :threshold threshold)
:create (create)
:connect (connect)
:next (no-op :no-forward t)))
@ -187,7 +187,7 @@
(let ((args+ (if name
`(:addr ,(list domain cat name))
`(: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
(message:create (list domain :create) :data (append args+ args)))))

View file

@ -70,8 +70,8 @@
':default (csys:std-proc :actions (csys:basic-actions)))))
(defun actions-zero-initial ()
(util:plist-merge (list :next (next-zero-initial))
(csys:basic-actions)))
(util:plist-merge (csys:basic-actions)
(list :next (next-zero-initial))))
(defun next-zero-initial ()
(lambda (msg scope)