help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to shadow a function temporarily? (flet and cl-flet)


From: Michael Heerdegen
Subject: Re: How to shadow a function temporarily? (flet and cl-flet)
Date: Sun, 26 Jan 2014 20:45:04 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Barry Margolin <barmar@alum.mit.edu> writes:

> Use `letf' of `symbol-function':
>
> (letf ((symbol-function 'function-name) (symbol-function 
> 'other-function))
>   ...)

That was my idea too, but that also doesn't work when compiled.  Try
with Stefan's counter example.

Michael.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]