Skip to content

Commit 0a78a76

Browse files
committed
Cosmetics
Since there is more than enough space, I actually prefer the old way in these cases. However, when updating the built-in version of this package, these forms have to be replaced with `cond*', and without these line-breaks, we would get a larger diff. Since I regularly update the built-in copy, prioritize making that task less painful.
1 parent c2a274c commit 0a78a76

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

lisp/transient.el

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4864,22 +4864,24 @@ apply the face `transient-unreachable' to the complete string."
48644864
(propertize "|" 'face 'transient-delimiter))))))
48654865

48664866
(cl-defmethod transient--get-description ((obj transient-child))
4867-
(cond-let* [[desc (oref obj description)]]
4868-
((functionp desc)
4869-
(condition-case nil
4870-
(funcall desc obj)
4871-
(wrong-number-of-arguments (funcall desc))))
4872-
(desc)))
4867+
(cond-let*
4868+
[[desc (oref obj description)]]
4869+
((functionp desc)
4870+
(condition-case nil
4871+
(funcall desc obj)
4872+
(wrong-number-of-arguments (funcall desc))))
4873+
(desc)))
48734874

48744875
(cl-defmethod transient--get-face ((obj transient-suffix) slot)
4875-
(cond-let* ((not (slot-boundp obj slot)) nil)
4876-
[[face (slot-value obj slot)]]
4877-
((facep face) face)
4878-
((functionp face)
4879-
(let ((transient--pending-suffix obj))
4880-
(condition-case nil
4881-
(funcall face obj)
4882-
(wrong-number-of-arguments (funcall face)))))))
4876+
(cond-let*
4877+
((not (slot-boundp obj slot)) nil)
4878+
[[face (slot-value obj slot)]]
4879+
((facep face) face)
4880+
((functionp face)
4881+
(let ((transient--pending-suffix obj))
4882+
(condition-case nil
4883+
(funcall face obj)
4884+
(wrong-number-of-arguments (funcall face)))))))
48834885

48844886
(defun transient--add-face (string face &optional append beg end)
48854887
(let ((str (copy-sequence string)))

0 commit comments

Comments
 (0)