radian-software / prescient.el

☄️ Simple but effective sorting and filtering for Emacs.
MIT License
603 stars 25 forks source link

weird definition source for `vertico-prescient-mode` #162

Open dadinn opened 1 month ago

dadinn commented 1 month ago

I have the following definitions in my init.el:

(use-package vertico
  :straight
  (:files (:defaults "extensions/*"))
  :init
  (vertico-mode)
  :hook
  (minibuffer-setup . vertico-repeat-save)
  :bind
  ("C->" . vertico-repeat))

(use-package prescient
  :custom
  (prescient-save-file
   (locate-user-emacs-file "prescient-save.el"))
  (prescient-sort-full-matches-first t)
  :custom
  (prescient-filter-method
   (quote (fuzzy regexp)))
  :config
  (prescient-persist-mode))

(use-package vertico-prescient
  :init
  (vertico-prescient-mode)
  :custom
  (vertico-prescient-override-sorting t))

When I run describe-function on vertico-prescient-mode I do get the correct documentation, but the first line of the *Help* buffer starts with the text:

vertico-prescient-mode is an autoloaded interactive native-compiled Lisp function in ‘../../../init.el’.

Seeing the ../../../init.el link is unexpected, and clicking on it just jumps to the beginning of my init.el file.

Calling xref-find-definitions with M-. will do the same, yet I would expect these to jump to the minor-mode definition in the vertico-prescient.el sources in the prescient git repo.

Something looks fishy.