gptel-transient: better multi-line directive editing
* gptel-transient.el (gptel--suffix-system-message): Mark the whole directive when editing it in the `*gptel-system*` buffer. Previously only the first line of the directive was being marked.
This commit is contained in:
parent
f0e4889c36
commit
a61fda4661
1 changed files with 3 additions and 3 deletions
|
@ -583,9 +583,9 @@ This uses the prompts in the variable
|
|||
;; TODO: make-separator-line requires Emacs 28.1+.
|
||||
;; (insert (propertize (make-separator-line) 'rear-nonsticky t))
|
||||
(set-marker msg-start (point))
|
||||
(save-excursion
|
||||
(insert (buffer-local-value 'gptel--system-message orig-buf))
|
||||
(push-mark)
|
||||
(beginning-of-line)
|
||||
(push-mark nil 'nomsg))
|
||||
(activate-mark))
|
||||
(display-buffer (current-buffer)
|
||||
`((display-buffer-below-selected)
|
||||
|
|
Loading…
Add table
Reference in a new issue