[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dynamically constructing advice behaves strangely
From: |
Michael Heerdegen |
Subject: |
Re: Dynamically constructing advice behaves strangely |
Date: |
Sun, 14 Feb 2016 16:34:08 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (gnu/linux) |
Marcin Borkowski <mbork@mbork.pl> writes:
> This works (i.e., M-: foo-fun properly runs the advice), but I expected
> the symbol `advice-for-foo-fun' to have this piece of advice in its
> function cell - and it does not. Why?
You bind the function to a new uninterned symbol (`make-symbol'), which
is not what you want. You want `intern'.
Michael.