Function: tuareg-switch-to-recent-buffer
tuareg-switch-to-recent-buffer is an interactive and natively compiled
function defined in tuareg.el.
Signature
(tuareg-switch-to-recent-buffer)
Documentation
Switch to the most recently used tuareg-mode buffer.
Key Bindings
tuareg-interactive-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-recent-buffer ()
"Switch to the most recently used `tuareg-mode' buffer."
(interactive)
(let ((recent-ocaml-buffer
(cl-find-if (lambda (buf)
(with-current-buffer buf (derived-mode-p 'tuareg-mode)))
(buffer-list))))
(if recent-ocaml-buffer
(pop-to-buffer recent-ocaml-buffer)
(message "Tuareg: No recent Ocaml buffer found."))))