unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: How to shadow a function temporarily? (flet and cl-flet)
Date: Sun, 26 Jan 2014 20:45:04 +0100	[thread overview]
Message-ID: <87wqhmle7z.fsf@web.de> (raw)
In-Reply-To: barmar-49D621.14362126012014@news.eternal-september.org

Barry Margolin <barmar@alum.mit.edu> writes:

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

That was my idea too, but that also doesn't work when compiled.  Try
with Stefan's counter example.

Michael.




  reply	other threads:[~2014-01-26 19:45 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.12843.1390745495.10748.help-gnu-emacs@gnu.org>
2014-01-26 16:22 ` How to shadow a function temporarily? (flet and cl-flet) Emanuel Berg
2014-01-26 19:25   ` Alex Kost
2014-01-26 18:32 ` Emanuel Berg
2014-01-26 19:38   ` Alex Kost
2014-01-26 19:36 ` Barry Margolin
2014-01-26 19:45   ` Michael Heerdegen [this message]
2014-01-26 22:07   ` Alex Kost
2014-01-26 14:11 Alex Kost
2014-01-26 14:50 ` Stefan Monnier
2014-01-26 19:24   ` Alex Kost
2014-01-26 22:08     ` Stefan Monnier
2014-01-27  5:57       ` Alex Kost
2014-01-27 13:40         ` Stefan Monnier
2014-01-27 14:59           ` Alex Kost
2014-01-26 19:03 ` Marcin Borkowski
2014-01-26 19:31   ` Alex Kost

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87wqhmle7z.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --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.
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).