Fix dape-memory buffer creation
Running `dape-memory` command while debugging a C project results in the following error:
```
Error running timer: (invalid-function #<buffer *temp*-18550>)
```
I've traced the issue to the `dape--memory-revert` function which seems to misuse the `replace-region-contents` function by passing in the buffer directly instead of a function returning a buffer (or a string) as instructed by the docs:
```
(replace-region-contents BEG END REPLACE-FN &optional MAX-SECS MAX-COSTS)
...
Replace the region between BEG and END using REPLACE-FN.
REPLACE-FN runs on the current buffer narrowed to the region. It
should return either a string or a buffer replacing the region.
```
The bug seems to have been introduced recently in: 73844a8 Fix new obsolete warnings in emacs 31.3
合并状态:未合并 1 条评论