diff --git a/README.org b/README.org index 1f0bb1b..cf50767 100644 --- a/README.org +++ b/README.org @@ -250,7 +250,7 @@ Seems to be one of the most reliable tools in the basket... mostly because #+begin_src elisp (defun gptel-org-tool--list-buffers (&optional arg) (list-buffers-noselect) - (with-temp-buffer "*Buffer List*" + (with-current-buffer "*Buffer List*" (let ((content (buffer-string))) content))) diff --git a/gptel-org-tools.el b/gptel-org-tools.el index 460752b..6927152 100644 --- a/gptel-org-tools.el +++ b/gptel-org-tools.el @@ -63,7 +63,7 @@ (defun gptel-org-tool--list-buffers (&optional arg) (list-buffers-noselect) - (with-temp-buffer "*Buffer List*" + (with-current-buffer "*Buffer List*" (let ((content (buffer-string))) content)))