Skip to content

Commit

Permalink
Update ocaml-eglot-util.el
Browse files Browse the repository at this point in the history
Co-authored-by: Ulysse <5031221+voodoos@users.noreply.github.com>
  • Loading branch information
xvw and voodoos authored Jan 6, 2025
1 parent 0874a4a commit 0a7101e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ocaml-eglot-util.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 0a7101e

Please sign in to comment.