Stefan Monnier writes: > Thierry Volpiatto [2022-09-29 06:57:07] wrote: >> After thinking at it, it would be great to allow using interactive calls >> in specs without wrapping them inside a function: >> >> Using this should ask for line number and file: >> (format-spec "Go to line %n in file %f %g" '((?n . (read-number "Number: ")) >> (?g . "now") >> (?f . (read-file-name "File: ")))) > > ELisp forms under a quote make me cringe. > > Code should be quoted with `lambda` (which you run with `funcall` or > `apply`), not with `quote` (for which you need to use `eval`). Ok, that's what was proposed initially and is indeed probably the best, however I was wondering if an implementation of format-spec not evaluating the whole alist at once but only the needed specs would be better. -- Thierry