From cca5f428919b4c102782d8130a4f3514e7f9b282 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Wed, 14 Aug 2024 18:15:52 +0200 Subject: [PATCH] ; (kubed-list-delete-marked): Update original buffer. --- kubed.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/kubed.el b/kubed.el index d8511e7..9982f93 100644 --- a/kubed.el +++ b/kubed.el @@ -741,7 +741,8 @@ regardless of QUIET." (tabulated-list-put-tag (propertize "K" 'help-echo "Deletion in progress"))) (forward-line))) - (let ((errb (generate-new-buffer " *kubed-list-delete-marked-stderr*"))) + (let ((errb (generate-new-buffer " *kubed-list-delete-marked-stderr*")) + (buf (current-buffer))) (make-process :name "*kubed-list-delete-marked*" :stderr errb @@ -753,7 +754,9 @@ regardless of QUIET." ((string= status "finished\n") (message (format "Deleted %d marked Kubernetes resources." (length delete-list))) - (kubed-list-update t)) + (when (buffer-live-p buf) + (with-current-buffer buf + (kubed-list-update t)))) ((string= status "exited abnormally with code 1\n") (with-current-buffer errb (goto-char (point-max)) -- 2.39.5