]> git.eshelyaron.com Git - emacs.git/commit
Eglot: be careful about gfm-view-mode read-only buffers
authorJoão Távora <joaotavora@gmail.com>
Fri, 7 Apr 2023 18:40:27 +0000 (19:40 +0100)
committerJoão Távora <joaotavora@gmail.com>
Fri, 7 Apr 2023 18:40:27 +0000 (19:40 +0100)
commit7239098ad436a10afddce117ab224189f6bd6b7f
tree0220c83eb7f6ecd0fcd325bfcd2d8cc9c7d0155d
parent3aedd5c920560fe6456a860a900be40a35e850d2
Eglot: be careful about gfm-view-mode read-only buffers

Although in most situations this doesn't error, it's only because of
the very wide binding of inhibit-read-only in jsonrpc--process-filter.
That binding will soon be narrowed, so better not rely on it.

Originally reported in
https://github.com/joaotavora/eglot/discussions/1202.

* lisp/progmodes/eglot.el (eglot--format-markup): Inhibit
read-only before touching buffer potentially in gfm-view-mode.
lisp/progmodes/eglot.el