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: Alex Kost
Subject: Re: How to shadow a function temporarily? (flet and cl-flet)
Date: Mon, 27 Jan 2014 02:07:03 +0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Barry Margolin (2014-01-26 23:36 +0400) wrote:

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

That's what I wanted (not sure about byte-compiled yet): I couldn't
figure it out how to use `letf' to set functions, but now I know about
`symbol-function'.

Thank you very much.





reply via email to

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