Closed sam-s closed 4 years ago
same problem here, seems to be caused by latest exec-path-from-shell
, works fine after downgrade it to previous version
it appears that all newlines inserted into a cell are read-only (or become readonly very quickly). also, restarting emacs does not help
I don't doubt that it's happening, but until you follow the README for filing a bug, it's impossible for me to help you (since I can't reproduce it).
I started running into this (or a related issue) recently.
In my case, I traced it back to a recent re-implementation of json-encode-string
: https://github.com/emacs-mirror/emacs/blame/81aed7becfdc66af464e54c90680e9507693bdaf/lisp/json.el#L442
The implementation changed from using string/list operations to operating on a persistent temporary buffer. When you attempt to encode a propertized string, it's possible for the temporary buffer to end up read-only. I worked around the issue locally by patching line json.el:442 to be (insert ?\" (substring-no-properties string))
.
You can check if you're encountering the same issue by running (switch-to-buffer json--string-buffer)
.
@deactivated -- thank you very much, I fixed the bug in Emacs git.
only trivial evaluation (e.g.,
1+1
) works, anything more complicated results in:(with the most recent version from
elpa
, ein-20200531.22)