GNU bug report logs - #61072
How to change the length of the separation lines in eldoc, used by eglot?

Previous Next

Package: emacs;

Reported by: Wei-Ting Lin <linwaytin <at> gmail.com>

Date: Thu, 26 Jan 2023 06:49:01 UTC

Severity: normal

Done: João Távora <joaotavora <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Felician Nemeth <felician.nemeth <at> gmail.com>
To: João Távora <joaotavora <at> gmail.com>
Cc: 61072 <at> debbugs.gnu.org, Wei-Ting Lin <linwaytin <at> gmail.com>
Subject: bug#61072: How to change the length of the separation lines in eldoc, used by eglot?
Date: Wed, 15 Mar 2023 13:07:18 +0100
João Távora <joaotavora <at> gmail.com> writes:

> Rather,  Eglot should add a markdown-capable element to
> eldoc-display-functions and hint in the documentation item
> produced by Eglot's eldoc-documentation-functions that that item
> has a markdown version (it may also have a plaintext version
> alongside),  taken directly from the LSP source. The new function
> would then render the item appropriately.

Maybe I overthink this, but I wonder if it would make sense to specify
an optional content-type argument instead of a markdown-capable element.
That way, eldoc could potentially handle raw html texts as well.
Additionally, this would support different markdown variants.  And I'm
sure gnus/eww already has some helper functions that eldoc could reuse.

References for the text/markdown content-type:
  https://www.rfc-editor.org/rfc/rfc7763
  https://www.rfc-editor.org/rfc/rfc7764#section-3




This bug report was last modified 2 years and 104 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.