GNU bug report logs - #12895
24.3.50; Replacement for flet

Previous Next

Package: emacs;

Reported by: Antoine Levitt <antoine.levitt <at> gmail.com>

Date: Thu, 15 Nov 2012 13:37:02 UTC

Severity: normal

Tags: notabug

Found in version 24.3.50

Done: Marcin Borkowski <mbork <at> mbork.pl>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Antoine Levitt <antoine.levitt <at> gmail.com>
Subject: bug#12895: closed (Re: bug#12895: Status: 24.3.50; Replacement
 for flet)
Date: Sun, 31 Jan 2016 17:11:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#12895: 24.3.50; Replacement for flet

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 12895 <at> debbugs.gnu.org.

-- 
12895: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12895
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Marcin Borkowski <mbork <at> mbork.pl>
To: 12895-done <at> debbugs.gnu.org
Subject: Re: bug#12895: Status: 24.3.50; Replacement for flet
Date: Sun, 31 Jan 2016 18:10:20 +0100
On 2016-01-31, at 17:51, Eli Zaretskii <eliz <at> gnu.org> wrote:

>> From: Marcin Borkowski <mbork <at> mbork.pl>
>> Date: Sun, 31 Jan 2016 15:19:12 +0100
>> 
>> just asking: should this "bug report" (which is clearly not a bug report
>> per se) be closed?
>
> Yes, please.
>
> Thanks.

Closing (it's not a bug).

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

[Message part 3 (message/rfc822, inline)]
From: Antoine Levitt <antoine.levitt <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; Replacement for flet
Date: Thu, 15 Nov 2012 14:35:41 +0100
Hi,

I'm trying to dynamically bind a function, and used flet
previously. flet is now apparently obsolete. The docstring suggests
using cl-flet. But cl-flet does lexical binding, not dynamic. How do I
get the old behavior (dynamic binding) without using the now-obsolete
flet? I'm confused by the number of subtly different functions to do the
same thing - letf, flet, labels, cl-labels, cl-letf, cl-flet - and find
the docstrings to be unclear. If I understand correctly, letf is what I
need, but the following does not do what I expect it to (ie suppress the
message)

(defun something ()
  (message "hi"))

(letf ((message (lambda () (&rest args) nil)))
  (something))

Is this because message is a built-in?

Sorry if this has been covered elsewhere, I couldn't find it.

Antoine



This bug report was last modified 9 years and 106 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.