emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/transient b4a2963636 33/41: transient-format(around:suf


From: Jonas Bernoulli
Subject: [elpa] externals/transient b4a2963636 33/41: transient-format(around:suffix): Update for transient-information
Date: Sun, 12 Nov 2023 20:04:09 -0500 (EST)

branch: externals/transient
commit b4a29636365d12a8079c3908ff8ffce5f84b85d3
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    transient-format(around:suffix): Update for transient-information
    
    With the advent of `transient-information, the `command' slot is
    no longer guaranteed to be bound.
    
    Closes #260.
---
 lisp/transient.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/transient.el b/lisp/transient.el
index 01fd40a1fc..fb4dec1850 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -3619,7 +3619,8 @@ Optional support for popup buttons is also implemented 
here."
                                            'transient-enabled-suffix
                                          'transient-disabled-suffix))))
               (cl-call-next-method obj))))
-    (if transient-enable-popup-navigation
+    (if (and transient-enable-popup-navigation
+             (slot-boundp obj 'command))
         (make-text-button str nil
                           'type 'transient
                           'command (oref obj command))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]