`apheleia-format-buffer` doesn't respect `inhibit-read-only`
The `apheleia-format-buffer` command is probably asynchronous. When it's executed right before turning on `read-only-mode` in my setup for emacs, it doesn't yet format the buffer and the buffer soon gets locked by `read-only-mode`.
So I set `(let ((inhibit-read-only t)) (call-interactively 'apheleia-format-buffer))`, but it doesn't respect the `inhibit-read-only`.
I also tested the code above when `read-only-mode` is just turned on in a buffer, the outcome is still the same.
2 条评论