We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gptel-rewrite diff fails to show a correct diff when buffer is modified since last saved
diff
Note: ediff works as expected
ediff
None
Put this code in a .py file and save it:
for i in range(1, 11): print(i)
Change the code to this but do not save the buffer:
for i in range(1, 10 + 1): print(i)
Run gptel-rewrite on the code, tell it to simplify and (hopefully) get this suggested result:
Now, run diff (RET d or C-c C-d) and the result shows no changes (except for a missing newline which is issue #552)
RET d
C-c C-d
diff -u --label /home/johan/tmp/gptel-test.py --label \#\<buffer\ \*gptel-diff\*\> /home/johan/tmp/gptel-test.py /tmp/buffer-content-mdiIZ5 --- /home/johan/tmp/gptel-test.py +++ #<buffer *gptel-diff*> @@ -3,5 +3,4 @@ for i in range(1, 11): print(i) - # more code Diff finished. Tue Jan 7 11:43:08 2025
Emacs version: "GNU Emacs 29.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2024-05-03" gptel version: 20250107.34
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Please update gptel first -- errors are often fixed by the time they're reported.
Bug Description
gptel-rewrite
diff
fails to show a correct diff when buffer is modified since last savedNote:
ediff
works as expectedBackend
None
Steps to Reproduce
Put this code in a .py file and save it:
Change the code to this but do not save the buffer:
Run gptel-rewrite on the code, tell it to simplify and (hopefully) get this suggested result:
Now, run
diff
(RET d
orC-c C-d
) and the result shows no changes (except for a missing newline which is issue #552)Note:
ediff
works as expectedAdditional Context
Emacs version: "GNU Emacs 29.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2024-05-03"
gptel version: 20250107.34
Backtrace
No response
Log Information
No response
The text was updated successfully, but these errors were encountered: