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

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

RE: flet, cl-flet, cl-letf in 24.3


From: Drew Adams
Subject: RE: flet, cl-flet, cl-letf in 24.3
Date: Sun, 21 Apr 2013 00:41:11 -0700

> it seems that from 24.3 on flet is marked as obsolete, to be 
> replaced by cl-flet or cl-letf. If you are fine with lexical 
> scope, cl-flet is your friend. However, I did not find 
> explicit documentation on what to do when you want to keep 
> relying on the dynamic scope as with the old flet. Is 
> (cl-letf (((symbol-function 'foo) #'(lambda (...) ...))) ...) 
> the suggested method? Does that give always have dynamic 
> scope? I'm a bit confused.

If you have read the doc and you feel it does not make things clear, consider
filing a doc bug: `M-x report-emacs-bug'.




reply via email to

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