From 66280970778ef2ba1ddff0a485a8638581617948 Mon Sep 17 00:00:00 2001 From: Phil Bajsicki <phil@bajsicki.com> Date: Fri, 25 Apr 2025 21:15:10 +0200 Subject: [PATCH] Fix list-buffers --- README.org | 2 +- gptel-org-tools.el | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)))