|
From: | Lowell Kirsh |
Subject: | Re: elisp macros problem |
Date: | Sun, 25 Jul 2004 20:06:31 -0700 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040322 |
Lowell Barry Margolin wrote:
In article <ce1n4n$2gt$1@mughi.cs.ubc.ca>, Lowell Kirsh <lkirsh@cs.ubc.ca> wrote:Why does this not work: (defmacro my-add-hooks (hooks &rest body) `(dolist (hook ,hooks) (my-add-hook hook ,@body))) ??It looks like it should work to me. Make sure you quote the list of hooks when calling it, e.g.(my-add-hooks '(emacs-lisp lisp) (local-set-key ...))
[Prev in Thread] | Current Thread | [Next in Thread] |