unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* flet, cl-flet, cl-letf in 24.3
@ 2013-04-21  7:04 ndemmel
  2013-04-21  7:41 ` Drew Adams
       [not found] ` <mailman.24402.1366530089.855.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 9+ messages in thread
From: ndemmel @ 2013-04-21  7:04 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-04-27 13:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-21  7:04 flet, cl-flet, cl-letf in 24.3 ndemmel
2013-04-21  7:41 ` Drew Adams
     [not found] ` <mailman.24402.1366530089.855.help-gnu-emacs@gnu.org>
2013-04-21  9:49   ` ndemmel
2013-04-21 16:07     ` Drew Adams
2013-04-22 13:32     ` Stefan Monnier
2013-04-22 15:09       ` Andreas Röhler
     [not found]     ` <mailman.24438.1366637539.855.help-gnu-emacs@gnu.org>
2013-04-27 11:16       ` ndemmel
2013-04-27 11:46         ` Pascal J. Bourguignon
2013-04-27 13:52         ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).