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

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

[elpa] externals/kubed aee9cddd59 13/70: ; Fix 'kubed-kubectl-command' e


From: ELPA Syncer
Subject: [elpa] externals/kubed aee9cddd59 13/70: ; Fix 'kubed-kubectl-command' error when 'transient' is not loaded
Date: Tue, 6 Aug 2024 06:58:26 -0400 (EDT)

branch: externals/kubed
commit aee9cddd59ca99078033dcbb96661ed087678d40
Author: Eshel Yaron <me@eshelyaron.com>
Commit: Eshel Yaron <me@eshelyaron.com>

    ; Fix 'kubed-kubectl-command' error when 'transient' is not loaded
---
 kubed.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/kubed.el b/kubed.el
index 633df978a1..44319e7e9f 100644
--- a/kubed.el
+++ b/kubed.el
@@ -1930,8 +1930,11 @@ Interactively, prompt for COMMAND with completion for 
`kubectl' arguments."
           "Command: "
           (concat
            kubed-kubectl-program " "
-           (let ((args (kubed-transient-args))
-                 (scope (and (fboundp 'transient-scope) (transient-scope))))
+           (let* ((args (kubed-transient-args))
+                  (prefix (and (fboundp 'transient-prefix-object)
+                               (transient-prefix-object)))
+                  (scope (and prefix (fboundp 'eieio-oref)
+                              (eieio-oref prefix 'scope))))
              (when (or args scope)
                (concat (string-join (append scope args) " ") " "))))
           'kubed-kubectl-command-history)))



reply via email to

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