[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Redefining functions and variables
From: |
Elena |
Subject: |
Re: Redefining functions and variables |
Date: |
Wed, 08 Dec 2010 15:21:26 -0000 |
User-agent: |
G2/1.0 |
On Jul 28, 12:35 am, Andreas Politz <poli...@fh-trier.de> wrote:
> Why not use `quote'.
Because it didn't work. This:
(fboundp ',name))
was expanded by `macroexpand' to:
(fboundp ...)) ;; Exactly as shown.
Using `quote' like this:
(fboundp (quote ,name)))
I got the same result.
> Of course this leads to an endless recursive loop, expanding your macro
> again and again ...
Then I should have tested the macro with `macroexpand-all' instead of
`macroexpand'. However, I've tried using the macro, and it seemed to
work, albeit it choked on the unquoted symbol passed to `fboundp'.
> (funcall (symbol-function 'defun) 'foo nil)
> does not seem to work either, which would mean that you can't save
> `defun's definition.
`defun' is not a function, it's a macro (defined in C source code).
Thanks for answering.
- Redefining functions and variables, Elena, 2010/12/08
- Re: Redefining functions and variables, Stefan Monnier, 2010/12/08
- Re: Redefining functions and variables, Elena, 2010/12/08
- Re: Redefining functions and variables, Andreas Politz, 2010/12/08
- Re: Redefining functions and variables,
Elena <=
- Re: Redefining functions and variables, Elena, 2010/12/08
- Re: Redefining functions and variables, Andreas Politz, 2010/12/08
- Re: Redefining functions and variables, Pascal J. Bourguignon, 2010/12/08
- Re: Redefining functions and variables, Elena, 2010/12/08
- Re: Redefining functions and variables, Stefan Monnier, 2010/12/08
- Re: Redefining functions and variables, Elena, 2010/12/08
- Re: Redefining functions and variables, Stefan Monnier, 2010/12/08
- Re: Redefining functions and variables, Uday S Reddy, 2010/12/08
- Re: Redefining functions and variables, Andreas Politz, 2010/12/08
- Re: Redefining functions and variables, Johan Bockgård, 2010/12/08