[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Interactive specs
From: |
Stefan Monnier |
Subject: |
Re: Interactive specs |
Date: |
Mon, 12 Dec 2005 10:34:24 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> After the release, I think it calls for a different approach. For
> instance, we could write
> (interactive
> (list (recompute-arg EXPRESSION) (recompute-arg EXPRESSION) ...))
> When evaluated, recompute-arg would return its arg, but when
> fix_command sees it, it would save EXPRESSION as the value.
That would be better indeed. But it still would force us to use (list ...)
which is sometimes fairly inconvenient.
Maybe we could instead define recompute-arg as
(defmacro recompute-arg (e)
`(list 'recompute-arg-tag ,e ',e))
and then we don't need to look inside the interactive spec at all: we can
just look at the argument's values and treat values of the form
(recompute-arg-tag V E) specially. And interactive specs can thus be
deinfed in any way we like, including calling a function shared among
several commands, ...
Stefan
- Interactive specs, align.el, Johan Bockgård, 2005/12/09
- Re: Interactive specs, align.el, Juri Linkov, 2005/12/09
- Re: Interactive specs, align.el, Johan Bockgård, 2005/12/09
- Re: Interactive specs, align.el, Juri Linkov, 2005/12/11
- Re: Interactive specs, Juri Linkov, 2005/12/11
- Re: Interactive specs, Richard M. Stallman, 2005/12/11
- Re: Interactive specs,
Stefan Monnier <=
- Re: Interactive specs, Richard M. Stallman, 2005/12/12