bug#81596: 30.2; Eldoc: "Nothing to follow at point" despite text appearing like a link (underlined, hoverable, with URL tooltip)
Ramón Cahenzli via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <[email protected]>
| Newsgroups | gmane.emacs.bugs |
|---|---|
| Message-ID | <[email protected]> |
On 8/14/26 8:47 PM, Rahul Martim Juliato wrote: > <snip> > > Indeed, this is something we could help solve in `markdown-ts-mode` > given more information and a reproducible case. I might have good news (well...). I think this actually works correctly in eldoc as long as it's used with eglot. The problems I saw were with lsp-mode and eldoc. I tested with Elixir, both elixir-ls and Expert's nightly release (the stable doesn't work with eglot). To test, I always used the docs for "Enum" as there are plenty of links in there. 1. eglot, eldoc & elixir-ls: Correctly shows clickable links to other help pages, e.g.: Enumerable: https://elixir.hexdocs.pm/1.20.3/Enumerable.html List: https://elixir.hexdocs.pm/1.20.3/List.html And also anchors on pages linked to function names, e.g.: at/2: https://elixir.hexdocs.pm/1.20.3/Enum.html#at/2 2. eglot, eldoc & Expert: Enumerable, Range, List etc. have different text properties (face is markdown-inline-code-face) but no link is shown. The language server probably doesn't provide one. 3. lsp-mode, eldoc & elixir-ls: Enumerable, Range, List and at/2 etc. are shown as clickable but "Nothing to follow at point" is printed when clicked. The properties for those links are: face (markdown-link-face markdown-inline-code-face) font-lock-multiline t help-echo "https://hexdocs.pm/elixir/1.20.3/Enumerable.html" keymap (keymap (mouse-2 . markdown-follow-thing-at-point) (follow-link . mouse-face)) mouse-face markdown-highlight-face Whereas the properties for the working link "View on hexdocs" at the top of the eldoc window are: button t category lsp-help-link face markdown-link-face follow-link t font-lock-multiline t help-echo "https://hexdocs.pm/elixir/1.20.3/Enum.html" keymap (keymap (13 . lsp--help-open-link) (mouse-2 . lsp--help-open-link)) mouse-face markdown-highlight-face The links elixir-ls emits seem fine, but they are on a backtick-quoted word in case that makes a difference for how eldoc renders them, e.g.: [`Range`](https://hexdocs.pm/elixir/1.20.3/Range.html)s for "Ranges". I was unable to configure lsp-mode to work with Expert and I'm not sure it can (?) For now I will use the combination of eglot and eldoc since this works best, but I can test more things on the lsp-mode & eldoc combination if that helps. Ramón