gnu-emacs-sources
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wajig.el 0.3 --- an interface for wajig


From: Thien-Thi Nguyen
Subject: Re: wajig.el 0.3 --- an interface for wajig
Date: Sat, 25 Feb 2006 00:11:31 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"William Xu" <address@hidden> writes:

> Thien-Thi Nguyen <address@hidden> writes:
>
>> as for style... personally, i would rewrite it as a function, w/
>
> Well, considering there are dozens of wajig commands, most of which
> could be defined by a similar definition body, it would be too crazy to
> `defun' them one by one...

by "it" i mean the `define-wajig-command'.  i am not suggesting you drop
abstraction; i am suggesting you choose a more amenable implementation.

> The problem here is how to map a macro to a list, which i've been
> thinking about all the time. Seems i'm forced to use an explicit
> `eval'. Things is a bit different in scsh, though. In scsh, i don't
> need that explicit `eval', e.g.,
>
>     (map (lambda (cmd) (run (,cmd))) '(ls pwd))
>
> This works quite nicely, simply wrapping around a macro(run, here)
> with a lambda function.

if `define-wajig-command' were a function, you would not have this
problem (although you may have other problems ;-).

thi


reply via email to

[Prev in Thread] Current Thread [Next in Thread]