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

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

flet, cl-flet, cl-letf in 24.3


From: ndemmel
Subject: flet, cl-flet, cl-letf in 24.3
Date: Sun, 21 Apr 2013 00:04:46 -0700 (PDT)
User-agent: G2/1.0

Hi,

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.

Best,
Niko


reply via email to

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