Erase buffer before inserting the summary
In case there's an older summary.
This commit is contained in:
parent
82fcc23f46
commit
c39c32ed85
1 changed files with 1 additions and 0 deletions
1
kagi.el
1
kagi.el
|
@ -261,6 +261,7 @@ list of conses."
|
||||||
F is a function to call the summarizer API that returns a JSON response."
|
F is a function to call the summarizer API that returns a JSON response."
|
||||||
(let ((summary (kagi--get-summary f)))
|
(let ((summary (kagi--get-summary f)))
|
||||||
(with-current-buffer (get-buffer-create buffer-name)
|
(with-current-buffer (get-buffer-create buffer-name)
|
||||||
|
(erase-buffer)
|
||||||
(insert summary)
|
(insert summary)
|
||||||
(goto-char 0)
|
(goto-char 0)
|
||||||
(text-mode)
|
(text-mode)
|
||||||
|
|
Loading…
Reference in a new issue