Function: tuareg-switch-to-repl
tuareg-switch-to-repl is an interactive and natively compiled function
defined in tuareg.el.
Signature
(tuareg-switch-to-repl EOB-P)
Documentation
Switch to the inferior OCaml process buffer.
With prefix argument EOB-P, positions cursor at end of buffer.
Key Bindings
tuareg-mode-map C-c C-z
Source Code
;; Defined in /nix/store/6mbh851dhnag8f92qfrlh9ckldzwf6c6-emacs-packages-deps/share/emacs/site-lisp/elpa/tuareg-20260626.936/tuareg.el
(defun tuareg-switch-to-repl (eob-p)
"Switch to the inferior OCaml process buffer.
With prefix argument EOB-P, positions cursor at end of buffer."
(interactive "P")
(let ((repl-buffer (get-buffer tuareg-interactive-buffer-name)))
(if (get-buffer-process repl-buffer)
(pop-to-buffer repl-buffer)
;; start a new REPL if one is not running already
(call-interactively #'tuareg-run-ocaml)))
(when eob-p
(push-mark)
(goto-char (point-max))))