Function: ghostel--mark-activated
ghostel--mark-activated is a natively compiled function defined in
ghostel.el.
Signature
(ghostel--mark-activated)
Documentation
Switch input mode when the region becomes active in semi-char mode.
On buffer-local activate-mark-hook; the keyboard analog of
ghostel-mouse-drag-or-set-region. Runs after the activating
command set the region, so the selection survives the switch.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel--mark-activated ()
"Switch input mode when the region becomes active in semi-char mode.
On buffer-local `activate-mark-hook'; the keyboard analog of
`ghostel-mouse-drag-or-set-region'. Runs after the activating
command set the region, so the selection survives the switch."
;; Mouse gestures pick the input mode in the mouse handlers themselves; the
;; command loop can finalize their (often empty) mark activation after the
;; handler has returned, so gate on the originating command rather than a
;; dynamic binding the activation outlives.
(when (and (not (memq this-command '(ghostel-mouse-press-or-copy-mode
ghostel-mouse-release-or-set-point
ghostel-mouse-drag-or-set-region)))
(eq ghostel--input-mode 'semi-char)
(not ghostel--inhibit-insert-forwarding))
(ghostel--enter-readonly-input-mode ghostel-mark-activation-input-mode)))