[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: elisp macros problem
From: |
Lowell Kirsh |
Subject: |
Re: elisp macros problem |
Date: |
Sun, 25 Jul 2004 19:53:30 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040322 |
Rahul Jain wrote:
You probably mean "why does this not do X?" but you never tell us what X
is, so we don't know how to help you achieve that.
What I meant was why does this not do the obvoious thing I want it to do...
Hint: you might want to macroexpand-1 a sample usage of the macro and
see if it expands to what you desired.
According to your definition:
(my-add-hooks '(lisp-mode-hook emacs-lisp-mode-hook)
...)
<=>
(dolist (hook '(lisp-mode-hook emacs-lisp-mode-hook))
(my-add-hook hook ...))
Is that what you wanted?
Almost. The call should actually be
(my-add-hooks '(lisp emacs-lisp)
...)
And yes, that is what I wanted.
Lowell
- Re: elisp macros problem, (continued)
Re: elisp macros problem, Barry Margolin, 2004/07/24
Re: elisp macros problem, Lowell Kirsh, 2004/07/25
Re: elisp macros problem, Lowell Kirsh, 2004/07/25
Re: elisp macros problem, Kalle Olavi Niemitalo, 2004/07/26
Re: elisp macros problem, Kevin Rodgers, 2004/07/26
Re: elisp macros problem, Barry Margolin, 2004/07/25
Re: elisp macros problem, Oliver Scholz, 2004/07/26