From 0a7101ef7e02257c73e79ea2aba4ef66d7ba13c7 Mon Sep 17 00:00:00 2001 From: Xavier Van de Woestyne Date: Mon, 6 Jan 2025 11:39:06 +0100 Subject: [PATCH] Update ocaml-eglot-util.el Co-authored-by: Ulysse <5031221+voodoos@users.noreply.github.com> --- ocaml-eglot-util.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ocaml-eglot-util.el b/ocaml-eglot-util.el index 7cff59f..0d5e1ea 100644 --- a/ocaml-eglot-util.el +++ b/ocaml-eglot-util.el @@ -101,8 +101,9 @@ (defun ocaml-eglot-util--visit-file (strategy current-file new-file range) "Visits a referenced document, NEW-FILE at position start of RANGE. -The STRATEGY can be `'new' `'current' or `'smart'. CURRENT-FILE is used -as a smart strategy." +The STRATEGY can be `'new' `'current' or `'smart'. The later opens a +new buffer if the destination is not in the CURRENT-FILE, ans uses the +current buffer otherwise." (push-mark) (cond ((eq strategy 'new) (find-file-other-window new-file)) ((eq strategy 'current) (find-file new-file))