Function: ghostel--mode-line-tag-mouse-exit

ghostel--mode-line-tag-mouse-exit is an interactive and natively compiled function defined in ghostel.el.

Signature

(ghostel--mode-line-tag-mouse-exit EVENT)

Documentation

Mouse-1 handler on the input-mode mode-line tag.

EVENT is the mouse event that triggered the click. Read-only modes return to the pre-readonly mode; char and line modes return to semi-char.

Key Bindings

ghostel--mode-line-tag-mouse-map <mode-line> <mouse-1>

Source Code

;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel--mode-line-tag-mouse-exit (event)
  "Mouse-1 handler on the input-mode mode-line tag.
EVENT is the mouse event that triggered the click.  Read-only modes return
to the pre-readonly mode; char and line modes return to semi-char."
  (interactive "e")
  (with-selected-window (posn-window (event-start event))
    (pcase ghostel--input-mode
      ((or 'copy 'emacs) (ghostel-readonly-exit))
      ((or 'char 'line)  (ghostel-semi-char-mode)))))