Hi,
I have the following problem: How do I advice a function so that
within that function, the function `read-minibuffer' (for example)
calls the definition of another function, say `my-read-minibuffer'?
I'm trying to use an advice around the function; the advice providing
a binding of the symbol `read-minibuffer' to the definition of
`my-read-minibuffer'. Like the following:
(defadvice la-fonction
(around la-fonction-extended enable compile)
"Documentation"
(let (f1)
(fset 'f1 read-minibuffer)
(fset 'read-minibuffer my-read-minibuffer)
ad-do-it
(fset 'read-minibuffer f1)))
Any comment? Is it silly? Is there a better way? Any idea?
Thanks for your help,
--
Matthias
_______________________________________________
Help-gnu-emacs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs