mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 15:41:37 -05:00
![]() Related to let binding `buffer-undo-list` improperly and making text read-only when it shouldn't be. Fixes #139 * jupyter-repl.el (jupyter-repl-with-single-undo) (jupyter-repl-inhibit-undo-when): New macros. (jupyter-repl-insert): Inhibit undo only when insertions are `read-only` (jupyter-repl-insert-prompt): Don't make continuation prompts `read-only` (jupyter-repl-replace-cell-code): Allow the argument to be a `buffer`. Use `replace-buffer-contents` in this case. Avoids unnecessary undo information. (jupyter-handle-is-complete-reply): Don't insert a `read-only` newline on incomplete cell code. (jupyter-repl-indent-line): Pass buffer to `jupyter-repl-replace-cell-code` (jupyter-repl-insert-continuation-prompts): Don't inhibit undo * test/jupyter-test.el (jupyter-repl-undo): Add more tests. |
||
---|---|---|
.. | ||
jupyter-test.el | ||
test-helper.el |