[Top][All Lists]

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

Re: problems with flet on last emacs

From: Stefan Monnier
Subject: Re: problems with flet on last emacs
Date: Wed, 27 Jun 2012 11:29:10 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

>> stranges things happen with recent Emacs.
>> All functions that use flet don't work anymore.

And I hopefully have fixed this about half an hour ago.

> flet is a macro in cl-macs.el
> in emacs-version "23.4.2":
> This is spooky, because it rebinds the function slot of the symbol
> (globally).

Yes, it's pretty ugly.

> In Common Lisp, flet is a lexical binding.
> An alternative (and more correct) implementation of flet would use a
> code walker to substitute any call to (f 42) by something like:
> (--cl-letf-function-- 42).

`cl-flet' does something sane along these lines, which should be
compliant with the Common-Lisp semantics.


reply via email to

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