From 6ac88b7dc0a7d2aa0930e9dd1474333e6f455889 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Sun, 16 Apr 2023 19:37:45 +0300 Subject: [PATCH] Don't select killed buffers --- esy-publish.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/esy-publish.el b/esy-publish.el index 7b0f956..408d57c 100644 --- a/esy-publish.el +++ b/esy-publish.el @@ -6,7 +6,7 @@ ;; Maintainer: Eshel Yaron ;; Keywords: languages extensions ;; URL: http://git.eshelyaron.com/gitweb/?p=esy-publish.git -;; Package-Version: 0.9.0 +;; Package-Version: 0.10.0 ;; Package-Requires: ((emacs "28.2")) ;; This file is NOT part of GNU Emacs. @@ -515,9 +515,10 @@ (org-publish "all" force) (dolist (buffer (seq-difference esy-publish--buffers initial-buffers)) - (with-current-buffer buffer - (set-buffer-modified-p nil)) - (kill-buffer buffer))) + (when (buffer-live-p buffer) + (with-current-buffer buffer + (set-buffer-modified-p nil)) + (kill-buffer buffer)))) (setq esy-publish--buffers nil)) (defun esy-publish-all () -- 2.39.5