branch: elpa/gptel commit c03e4f3a4768c46cc7c581e52ee130e76a2e0173 Author: Karthik Chikmagalur <karthikchikmaga...@gmail.com> Commit: Karthik Chikmagalur <karthikchikmaga...@gmail.com>
gptel-org: Fix duplicate call to strip-elements * gptel-org.el (gptel-org--create-prompt): `gptel-org--strip-elements' was being called twice, remove the duplicate call. --- gptel-org.el | 2 -- 1 file changed, 2 deletions(-) diff --git a/gptel-org.el b/gptel-org.el index 5afb973918..3e3686cfac 100644 --- a/gptel-org.el +++ b/gptel-org.el @@ -249,7 +249,6 @@ value of `gptel-org-branching-context', which see." (goto-char (point-min))) (goto-char (point-max)) (gptel-org--unescape-tool-results) - (gptel-org--strip-elements) (gptel-org--strip-block-headers) (when gptel-org-ignore-elements (gptel-org--strip-elements)) (save-excursion (run-hooks 'gptel-prompt-filter-hook)) @@ -259,7 +258,6 @@ value of `gptel-org-branching-context', which see." (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) (when gptel-org-ignore-elements (gptel-org--strip-elements)) (save-excursion (run-hooks 'gptel-prompt-filter-hook))