1
0
Fork 0

Erase buffer before inserting the summary

In case there's an older summary.
This commit is contained in:
Bram Schoenmakers 2023-12-26 00:15:18 +01:00
parent 82fcc23f46
commit c39c32ed85
Signed by: bram
GPG key ID: 0CCD19DFDC63258F

View file

@ -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)