From e02dfa6c3599466c09176fb35a31eb1c7ed25975 Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Fri, 1 Dec 2023 21:07:47 +0100 Subject: [PATCH] transient-toggle-level-limit: Use transient-prefix-object Since this is the only use of `transient-define-suffix' in "transient.el" itself, it might be looked at for inspiration, so use `transient-prefix-object', instead of `transient--prefix', which in this case would be equivalent, but is intended for internal use only. Hopefully this helps avoiding some confusion. --- lisp/transient.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/transient.el b/lisp/transient.el index 8aa90767..ed05c2d7 100644 --- a/lisp/transient.el +++ b/lisp/transient.el @@ -2877,7 +2877,7 @@ transient is active." (transient--all-levels-p (format "Hide suffix %s" (propertize - (format "levels > %s" (oref transient--prefix level)) + (format "levels > %s" (oref (transient-prefix-object) level)) 'face 'transient-higher-level))) ("Show all suffix levels"))) :inapt-if (lambda () (= transient-default-level transient--max-level))