This is the mail archive of the guile-emacs@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: special forms (save-excursion)


Kalle Olavi Niemitalo <tosi@ees2.oulu.fi> writes:

> But the macros made with define-macro (what is the difference
> between that and defmacro?) are not hygienic by default.  Should
> we hygienize each of them separately, or do we just give people a
> list of symbols which they must not rebind when using the macros?

I don't know either about the difference of those two...
Guile provides some procedures like procedure->syntax, so
using them might be the best for now.

My policy for the moment is, "Anything is OK, as long as it works."
We have to be careful choosing API, though. (like import-*)

> R5RS doesn't say what () evaluates to, so it would be better to
> quote it.
> 
> I believe "sexp" means the usual printed form of an expression.
> The parameter of lisp-false? is the object itself, not a printed
> form.  Use "obj" instead.

Right.  Thanks.

> > (define-public (lisp-variable-set! symbol value)
> >   (lisp-eval `(setq ,symbol ,value)))
> 
> The value should be quoted in the setq call.

There are a lot of bugs in that code... (It doesn't work.)
I'll fix them and release the next version soon.

> Can't you just (export import-lisp-variable-1)?

OK.  I didn't know that.  Thanks.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]