bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#61072: How to change the length of the separation lines in eldoc, us


From: Felician Nemeth
Subject: bug#61072: How to change the length of the separation lines in eldoc, used by eglot?
Date: Wed, 29 Mar 2023 19:48:42 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

João Távora <joaotavora@gmail.com> writes:

>> Sure, but can a better markdown.el solve the original issue?  Is there a
>> way to render a separation line independently of the current
>> window-width?
>
> Yes, there is, with just the same code we use in eldoc now to separate
> documentation from different backends.
>
>    (concat "\n" (propertize "\n" 'face '(:inherit separator-line :extend
>    t)) "\n")

Surprisingly, this does not work in the *scratch* buffer.  It does work
in a non elisp-mode buffer.  I wonder why.

make-separator-line is a bit more complicated than the code above.
Would it make sense to use that when it's available? (I.e., Emacs 29 and
above.)

> I've mailed Jason Blevins, markdown.el maintainer but he hasn't
> responded.  Maybe make a bug report in the Github repo.

Yuan Fu (CC'd) has already made one:
https://github.com/jrblevin/markdown-mode/issues/753

> But window-width independence doesn't end there.  A proper renderer
> would probably remove hard new lines in markdown paragraphs, so that
> text can be wrapped automatically to windows with visual-line-mode does.
> Or another way to get the same effect.

I'd say let's take baby steps.

Felicián





reply via email to

[Prev in Thread] Current Thread [Next in Thread]