all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ndemmel@gmail.com
To: help-gnu-emacs@gnu.org
Subject: flet, cl-flet, cl-letf in 24.3
Date: Sun, 21 Apr 2013 00:04:46 -0700 (PDT)	[thread overview]
Message-ID: <5c1e7b99-1d04-46fe-a0d0-3709a468add7@googlegroups.com> (raw)

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	other threads:[~2013-04-21  7:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-21  7:04 ndemmel [this message]
2013-04-21  7:41 ` flet, cl-flet, cl-letf in 24.3 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5c1e7b99-1d04-46fe-a0d0-3709a468add7@googlegroups.com \
    --to=ndemmel@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.