Commit 76a0c16
committed
gptel-org: copy gptel-org-ignore-elements to prompt buffer
* gptel-org.el (gptel-org--create-prompt-buffer): Let-bind the
request-buffer-local value of `gptel-org-ignore-elements' when
stripping Org elements in the prompt construction buffer. This is
required since `gptel-org-ignore-elements' is not copied over by
`gptel--with-buffer-copy'.
To set `gptel-org-ignore-elements' buffer-locally in the first
place, run
(setq-local gptel-org-ignore-elements
(copy-sequence gptel-org-ignore-elements))1 parent 33ee023 commit 76a0c16
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
251 | 254 | | |
252 | 255 | | |
253 | 256 | | |
| |||
257 | 260 | | |
258 | 261 | | |
259 | 262 | | |
260 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
261 | 267 | | |
262 | 268 | | |
263 | 269 | | |
| |||
0 commit comments