Function: ghostel-readonly-exit-and-send
ghostel-readonly-exit-and-send is an interactive and natively compiled
function defined in ghostel.el.
Signature
(ghostel-readonly-exit-and-send)
Documentation
Exit read-only mode and send the triggering key to the terminal.
Only forwards the key when the mode we are returning to actually accepts terminal input (semi-char or char).
Key Bindings
ghostel-readonly-fast-exit-mode-map SPC..~ ghostel-readonly-fast-exit-mode-map ..\x3FFFFF
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel-readonly-exit-and-send ()
"Exit read-only mode and send the triggering key to the terminal.
Only forwards the key when the mode we are returning to actually
accepts terminal input (semi-char or char)."
(interactive)
(let ((target (or ghostel--pre-readonly-mode 'semi-char))
(custom-exit ghostel--readonly-exit-function))
(ghostel-readonly-exit)
(when (and ghostel--term (not custom-exit)
(memq target '(semi-char char)))
(ghostel--self-insert))))