emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#12895: closed (24.3.50; Replacement for flet)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#12895: closed (24.3.50; Replacement for flet)
Date: Sun, 31 Jan 2016 17:11:02 +0000

Your message dated Sun, 31 Jan 2016 18:10:20 +0100
with message-id <address@hidden>
and subject line Re: bug#12895: Status: 24.3.50; Replacement for flet
has caused the debbugs.gnu.org bug report #12895,
regarding 24.3.50; Replacement for flet
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
12895: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12895
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.3.50; Replacement for flet Date: Thu, 15 Nov 2012 14:35:41 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
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



--- End Message ---
--- Begin Message --- Subject: Re: bug#12895: Status: 24.3.50; Replacement for flet Date: Sun, 31 Jan 2016 18:10:20 +0100 User-agent: mu4e 0.9.13; emacs 25.1.50.1
On 2016-01-31, at 17:51, Eli Zaretskii <address@hidden> wrote:

>> From: Marcin Borkowski <address@hidden>
>> 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


--- End Message ---

reply via email to

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