On Aug 10, 1:06 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> It's not really readable, so here's the second attempt:
>
One more unconventional example. :)
It's an on-the-fly expression evaluator. You type the list expression
and it shows the result instantly.
(setq anything-sources
'(((name . "Calculation Result")
(requires-pattern)
(match (lambda (candidate)
t))
(candidates "dummy")
(filtered-candidate-transformer .
(lambda (candidates source)
(list
(condition-case nil
(prin1-to-string
(eval (read anything-pattern)))
(error "error")))))
(action ("Do Nothing" . ignore)))))
_______________________________________________
gnu-emacs-sources mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources