From c39c32ed85fcacfec61617def7c88e1964b57460 Mon Sep 17 00:00:00 2001 From: Bram Schoenmakers Date: Tue, 26 Dec 2023 00:15:18 +0100 Subject: [PATCH] Erase buffer before inserting the summary In case there's an older summary. --- kagi.el | 1 + 1 file changed, 1 insertion(+) diff --git a/kagi.el b/kagi.el index 7771bea..2e0537b 100644 --- a/kagi.el +++ b/kagi.el @@ -261,6 +261,7 @@ list of conses." F is a function to call the summarizer API that returns a JSON response." (let ((summary (kagi--get-summary f))) (with-current-buffer (get-buffer-create buffer-name) + (erase-buffer) (insert summary) (goto-char 0) (text-mode)