Skip to content

Commit

Permalink
Make xref locations clickable.
Browse files Browse the repository at this point in the history
  • Loading branch information
stassats committed May 6, 2024
1 parent 1a2d6f1 commit e7175a5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions slime.el
Original file line number Diff line number Diff line change
Expand Up @@ -4602,12 +4602,17 @@ source-location."
(cl-loop for (group . refs) in xref-alist do
(slime-insert-propertized '(face bold) group "\n")
(cl-loop for (label location) in refs do
(slime-insert-propertized
(slime-propertize-region
(list 'slime-location location
'face 'font-lock-keyword-face)
" " (slime-one-line-ify label) "\n")))
(insert " ")
(slime-insert-propertized
'(mouse-face highlight)
(slime-one-line-ify label))
(insert "\n"))))
;; Remove the final newline to prevent accidental window-scrolling
(backward-delete-char 1))
(backward-delete-char 1)
(insert ?\x200B))

(defun slime-xref-next-line ()
(interactive)
Expand Down

0 comments on commit e7175a5

Please sign in to comment.