Skip to content
New issue

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

Pasting read-only text from REPL history into REPL prompt breaks REPL buffer #571

Open
egr95 opened this issue Feb 13, 2025 · 0 comments
Open

Comments

@egr95
Copy link

egr95 commented Feb 13, 2025

Here's a simple reproducer:

  1. Launch a REPL (jupyter-run-repl)
  2. Type a multiline command into the REPL prompt, and run it e.g.:
x = 10
print(x)
  1. Navigate up and select the two lines that were just typed, add them to the kill-ring (M-w), navigate back down to the REPL prompt (end of the buffer), and paste (C-y).
  2. Try delete-forward-char to remove the pasted text. This now throws the error Text is read-only, even though this is text that was just pasted into the REPL prompt, which should never be read-only.

The emacs-jupyter internals are a bit beyond me, but it seems like this might be a bug in jupyter-repl-yank-handle-field-property.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant