"William Xu" <[EMAIL PROTECTED]> writes: > Thien-Thi Nguyen <[EMAIL PROTECTED]> 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 _______________________________________________ Gnu-emacs-sources mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources
