[EMAIL PROTECTED] writes:

Hi Bill,

> Actually, the macro should be:
>
> (defmacro anything-add-to-actions (var action)
>   `(setq ,var (cons (car ,var)
>                   (append
>                    (cdr ,var)
>                    (list ',action)))))

Yep, that looks nice. I made some little changes, so that multiple
evaluations don't add an action several times and added documentation.

Thanks a lot,
Tassilo
-- 
[Emacs] is written in Lisp, which is the only computer language that is
beautiful.  -- Neal Stephenson, _In the Beginning was the Command Line_



_______________________________________________
gnu-emacs-sources mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources

Reply via email to