branch: elpa/gptel commit af4ddb1dffe96461501c08d061d51ac2dbe99c77 Author: Karthik Chikmagalur <karthikchikmaga...@gmail.com> Commit: Karthik Chikmagalur <karthikchikmaga...@gmail.com>
gptel-org: Create prompts from point, not point-max * gptel-org.el (gptel-org--create-prompt): Fix regression from d222ed8 causing prompts in Org mode to be created up to (point-max) instead of (point). (#723) * test: Update submodule with new prompt creation tests to avoid this bug in the future. --- gptel-org.el | 4 ++-- test | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gptel-org.el b/gptel-org.el index 3aedd90869..8a0a5b83e2 100644 --- a/gptel-org.el +++ b/gptel-org.el @@ -254,8 +254,8 @@ value of `gptel-org-branching-context', which see." (gptel--parse-buffer gptel-backend max-entries)))) ;; Create prompt the usual way (let ((org-buf (current-buffer)) - (beg (point-min)) (end (point-max))) - (gptel--with-buffer-copy org-buf beg end + (beg (point-min))) + (gptel--with-buffer-copy org-buf beg prompt-end (gptel-org--unescape-tool-results) (gptel-org--strip-elements) (gptel-org--strip-block-headers) diff --git a/test b/test index 77947a55f9..6efb724892 160000 --- a/test +++ b/test @@ -1 +1 @@ -Subproject commit 77947a55f95db24f240bd896cb3d04d72fe6ed00 +Subproject commit 6efb724892b9646a7fc1622ee1217a88c69180bc