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'.
This commit is contained in:
Karthik Chikmagalur 2023-04-08 19:33:44 -07:00
parent 44045be327
commit acf12ee6e3

View file

@ -609,7 +609,8 @@ buffer created or switched to."
(goto-char (point-max)) (goto-char (point-max))
(skip-chars-backward "\t\r\n") (skip-chars-backward "\t\r\n")
(message "Send your query with %s!" (message "Send your query with %s!"
(substitute-command-keys "\\[gptel-send]")))) (substitute-command-keys "\\[gptel-send]"))
(current-buffer)))
(defun gptel--convert-markdown->org (str) (defun gptel--convert-markdown->org (str)
"Convert string STR from markdown to org markup. "Convert string STR from markdown to org markup.