|
From: | Juri Linkov |
Subject: | bug#9054: 24.0.50; show source in other window |
Date: | Thu, 16 Sep 2021 22:11:44 +0300 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
>>> The back-end should return collected data as alist, >>> and front-end should render data as the buffer text. >> >> Hmmm... I still don't get it. > > For example, ‘C-h f’ (describe-function) first calls a back-end function > that collects all information about a function and returns it in a such form: > > ((type . function) > (name . "car") > (source-file . "src/data.c") > (Info-node . "(elisp) List Elements") > (docstring . ...) > ...) And when some data collection is too time-consuming it could return it as lambda for lazy evaluation. e.g.: ((type . function) (name . "car") (references . (lambda () (collect-references "car"))) ...)
[Prev in Thread] | Current Thread | [Next in Thread] |