Function: ghostel--imenu-goto
ghostel--imenu-goto is a natively compiled function defined in
ghostel-shell.el.
Signature
(ghostel--imenu-goto NAME POSITION &rest _)
Documentation
Jump to POSITION, then advance past the prompt prefix.
In semi-char/char modes, first enters the read-only mode picked by
ghostel-prompt-navigation-input-mode; line, copy, and Emacs modes
are preserved. Mirrors the landing position used by
ghostel-next-prompt.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel-shell.el
(defun ghostel--imenu-goto (_name position &rest _)
"Jump to POSITION, then advance past the prompt prefix.
In semi-char/char modes, first enters the read-only mode picked by
`ghostel-prompt-navigation-input-mode'; line, copy, and Emacs modes
are preserved. Mirrors the landing position used by
`ghostel-next-prompt'."
(unless (memq ghostel--input-mode '(emacs line copy))
(ghostel--enter-readonly-input-mode ghostel-prompt-navigation-input-mode))
(when (or (< position (point-min)) (> position (point-max)))
(widen))
(goto-char position)
(ghostel--prompt-input-start))