branch: elpa/gptel commit 7b48146a74e5286151c024100294661a2e99c8fa Author: Karthik Chikmagalur <karthikchikmaga...@gmail.com> Commit: Karthik Chikmagalur <karthikchikmaga...@gmail.com>
gptel-org: Make gptel--convert-markdown->org noninteractive * gptel-org.el (gptel--convert-markdown->org): This function is not intended to be interactive. --- gptel-org.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gptel-org.el b/gptel-org.el index 2faf8ecf51..a7bbaada68 100644 --- a/gptel-org.el +++ b/gptel-org.el @@ -433,7 +433,6 @@ non-nil (default), display a message afterwards." This is a very basic converter that handles only a few markup elements." - (interactive) (with-temp-buffer (insert str) (goto-char (point-min)) @@ -447,8 +446,8 @@ elements." (while (search-forward ticks nil t) (unless (or (eq (char-before (match-beginning 0)) ?`) (eq (char-after) ?`)) - (gptel--replace-source-marker (length ticks) 'end) - (throw 'block-end nil)))))) + (gptel--replace-source-marker (length ticks) 'end) + (throw 'block-end nil)))))) ;; Handle headings ((and (guard (eq (char-before) ?#)) heading) (cond