mmontone / emacs-inspector

Inspection tool for Emacs Lisp objects.
GNU General Public License v3.0
108 stars 9 forks source link

FYI: ewoc.el #1

Open alphapapa opened 3 years ago

alphapapa commented 3 years ago

Hi,

Thanks for working on this project. I hope it proves helpful with large, deeply nested structures, which Emacs sometimes struggles to display due to long-lines issues (e.g. in Ement.el, it can sometimes take minutes to display a backtrace due to the structures).

FYI, Emacs has a built-in GUI library, ewoc, that might be useful here. I've used it in Ement.el to great effect, and it's also used by built-in tools like vc-dir. Not many people seem to know about it, because it's not mentioned in the main Elisp manual.

mmontone commented 3 years ago

Hello. I can't find anything about ewoc. Can you point me to some documentation or source code?

alphapapa commented 3 years ago

M-x find-library RET ewoc RET. :) Also, I was wrong, it is in the Elisp manual, in section 39.20 Abstract Display.

mmontone commented 3 years ago

Ah. I see. Thanks!

TeMPOraL commented 2 years ago

Yup, just discovered (elisp) Abstract Display yesterday.

(elisp) Abstract Display Functions documents EWOC API, and (elisp) Abstract Display Example provides a copy-pasteable example.

See also (widget) Top for the built-in UI used by Customize interface, which would fit this use case nicely. Or the simper but apparently equivalent button library, (elisp) Buttons.