From acf12ee6e384e2b6a5df013ddcd9adec43a75c70 Mon Sep 17 00:00:00 2001 From: Karthik Chikmagalur Date: Sat, 8 Apr 2023 19:33:44 -0700 Subject: [PATCH] gptel: return the gptel buffer * gptel.el (gptel): `gptel' returns the buffer after creating or switching to it. This is useful for other commands that call `gptel'. --- gptel.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gptel.el b/gptel.el index 6be7651..679d707 100644 --- a/gptel.el +++ b/gptel.el @@ -609,7 +609,8 @@ buffer created or switched to." (goto-char (point-max)) (skip-chars-backward "\t\r\n") (message "Send your query with %s!" - (substitute-command-keys "\\[gptel-send]")))) + (substitute-command-keys "\\[gptel-send]")) + (current-buffer))) (defun gptel--convert-markdown->org (str) "Convert string STR from markdown to org markup.