]> git.eshelyaron.com Git - esy-publish.git/commitdiff
Don't select killed buffers
authorEshel Yaron <me@eshelyaron.com>
Sun, 16 Apr 2023 16:37:45 +0000 (19:37 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sun, 16 Apr 2023 16:37:45 +0000 (19:37 +0300)
esy-publish.el

index 7b0f956589dd2e46401683a16b4c04c64676b819..408d57ce2fa7804756c148122ef8a1c2e2dc8874 100644 (file)
@@ -6,7 +6,7 @@
 ;; Maintainer: Eshel Yaron <me@eshelyaron.com>
 ;; 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.
     (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 ()