Skip to content

Commit

Permalink
transient-infix-set: Cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Apr 4, 2024
1 parent d2c88d2 commit 0a1c469
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lisp/transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -3358,7 +3358,7 @@ prompt."

(cl-defmethod transient-infix-set :after ((obj transient-argument) value)
"Unset incompatible infix arguments."
(when-let* ((--- value)
(when-let* ((value)
(val (transient-infix-value obj))
(arg (if (slot-boundp obj 'argument)
(oref obj argument)
Expand All @@ -3372,15 +3372,15 @@ prompt."
(and (not (equal val arg))
(cl-mapcan (apply-partially filter val) spec)))))
(dolist (obj transient--suffixes)
(when-let* ((--- (cl-typep obj 'transient-argument))
(when-let* (((cl-typep obj 'transient-argument))
(val (transient-infix-value obj))
(arg (if (slot-boundp obj 'argument)
(oref obj argument)
(oref obj argument-format)))
(--- (if (equal val arg)
(member arg incomp)
(or (member val incomp)
(member arg incomp)))))
((if (equal val arg)
(member arg incomp)
(or (member val incomp)
(member arg incomp)))))
(transient-infix-set obj nil)))))

(cl-defgeneric transient-set-value (obj)
Expand Down

0 comments on commit 0a1c469

Please sign in to comment.