idkkkk
This commit is contained in:
2025-06-25 18:00:33 -06:00
parent 300e25e6f1
commit 4741124563
14 changed files with 114 additions and 35 deletions

View File

@@ -66,7 +66,7 @@ success. When a handler returns a marker, the marker will be jumped to.")
"Try to find documentation on IDENTIFIER, and "
(interactive (list (syd-thing-at-point-or-region)))
(or (syd-lookup--jump-to 'documentation identifier
:display-fn #'pop-to-buffer)
:display-fn #'display-buffer)
(user-error "Couldn't find documentation on %S"
(substring-no-properties identifier))))
@@ -86,8 +86,10 @@ success. When a handler returns a marker, the marker will be jumped to.")
(message "No lookup handler could find %S" identifier)
nil)
((markerp result)
(funcall display-fn (marker-buffer result))
(goto-char result)
(let ((b (marker-buffer result)))
(funcall display-fn b)
(when (eq (current-buffer) b)
(goto-char result)))
result)
(result))
(with-current-buffer (marker-buffer origin)