I' trying to select correct variable at compile timeusing the
defmacro, but it seems that I don't understand how to use it inside
let definitions. Here is the problem:
(defmacro my-load-user-init-file ()
(cond
((boundp 'load-user-init-file-p)
(intern "load-user-init-file-p"))
((boundp 'init-file-user)
(intern "init-file-user"))
(t
(intern "dummy"))))
(defun test ()
(let* (((my-load-user-init-file) t)
)
'ok))
Compiling file e:\home\jaalto\tmp\t1.el at Fri Jan 05 22:48:18 2001
While compiling test:
** Attempt to let-bind non-symbol (my-load-user-init-file)
What magic I need?
--
http://tiny-tools.sourceforge.net/