Replies: 2 comments 3 replies
-
You're not missing anything. The change you're referring to does remove an existing behavior which is now harder to get back. All the feedback I had to the previous behavior was overwhelmingly in the sense that it mostly wasn't useful in the vast majority of situations. But I suspected someone somewhere actually enjoyed it in some specific situation, and you're here to prove that. Personally, I think it makes much more sense like this. Even a multiline echo area is (with But the echo area is not the only display outlet for ElDoc. You can create however many you want, just look at But even without doing that, have you tried keeping the |
Beta Was this translation helpful? Give feedback.
-
For anyone interested, the following advice Eldoc echo area display function to strip (defun my/strip-echo (args)
"Filter :echo from the eldoc plist in ARGS.
This is used as an filtering advice to `eldoc-display-in-echo-area', and disable the new :echo feature."
(let* ((docs (car args))
(interact (cadr args))
(newdocs (mapcar
(lambda (doc)
(when doc
(let ((string (car doc))
(plist (cdr doc)))
(cl-remf plist :echo)
(cons string plist))))
docs)))
(list newdocs interact)))
(advice-add #'eldoc-display-in-echo-area :filter-args #'my/strip-echo) Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi,
Eglot 1.14 added support for the Eldoc
:echo
feature. The result has been to truncate Eldoc feedback in the modeline to a single line (at least for me, but from the code it seems normal).On a tall screen I actually like the multi-lines output, but I haven't seen an easy way to change back to the previous behavior. The
:echo
output simply takes priority, and even telling Eldoc to use multiple lines in the echo area has no effect.Removing the
:echo
addition and usingeldoc-echo-area-use-multiline-p
set to 1 would achieve the same result, but would leave the choice to the user. By putting this in the "stay out of" list, a user could easily have multiple lines in the echo (or whatever ones favorite Eldoc configuration is) while still have the same behavior as 1.14 by default.The documentation in Eldoc is not super clear to me, but with the existence of
eldoc-echo-area-use-multiline-p
any echo area specific content using:echo
should strive to have more compact content, but not in reducing the number of shown lines: this is already covered by the user controllableeldoc-echo-area-use-multiline-p
.WDYT? Or is there any other way I missed to both get eglot LSP feedback in Eldoc, and the echo area user "heigth control"?
Thanks for you time!
Beta Was this translation helpful? Give feedback.
All reactions