From f4b1e329fc6e3878bfff648649f5d654b1f2808c Mon Sep 17 00:00:00 2001 From: Spencer Williams Date: Sun, 6 Jul 2025 18:00:09 -0400 Subject: Aggressively delete old HTML files on export This is to avoid keeping around old HTML files that are no longer wanted after changing seam-export-alist. --- lisp/seam.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lisp/seam.el') diff --git a/lisp/seam.el b/lisp/seam.el index 193e8e5..2824fc7 100644 --- a/lisp/seam.el +++ b/lisp/seam.el @@ -310,8 +310,8 @@ completion prompt is given to choose the type." (defun seam-post-save-or-rename (old new &optional previous-links-from-file slug-or-title-changed) (unless (string= old new) - (seam-update-links old new) - (seam-delete-html-files-for-note old)) + (seam-update-links old new)) + (seam-delete-html-files-for-note old) (seam-export-note new) (let* ((current-links (seam-get-links-from-file new)) (added-links (cl-set-difference current-links -- cgit v1.2.3