Function: ghostel--sync-read-only
ghostel--sync-read-only is a natively compiled function defined in
ghostel.el.
Signature
(ghostel--sync-read-only)
Documentation
Set buffer-read-only from the terminal state.
Nil while foreign edits are intercepted (live terminal-input modes, see
ghostel--forward-inserts-after-change) or user-editable (line mode);
t restores the read-only barrier for copy/Emacs modes,
dead terminals and compile-style buffers.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel--sync-read-only ()
"Set `buffer-read-only' from the terminal state.
Nil while foreign edits are intercepted (live terminal-input modes, see
`ghostel--forward-inserts-after-change') or user-editable (line mode);
t restores the read-only barrier for copy/Emacs modes,
dead terminals and compile-style buffers."
(setq buffer-read-only
(not (or (ghostel--insert-forwarding-live-p)
(eq ghostel--input-mode 'line)))))