From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#12895: 24.3.50; Replacement for flet Date: Fri, 16 Nov 2012 02:21:03 +0100 Message-ID: <87a9uibaww.fsf@web.de> References: <87a9uj9efm.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1353028891 26754 80.91.229.3 (16 Nov 2012 01:21:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Nov 2012 01:21:31 +0000 (UTC) Cc: Antoine Levitt To: 12895@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 16 02:21:41 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TZAcj-0006bj-85 for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Nov 2012 02:21:37 +0100 Original-Received: from localhost ([::1]:55314 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZAcY-0008G6-Rk for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Nov 2012 20:21:26 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZAcT-0008Fm-CG for bug-gnu-emacs@gnu.org; Thu, 15 Nov 2012 20:21:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TZAcQ-00062g-9l for bug-gnu-emacs@gnu.org; Thu, 15 Nov 2012 20:21:21 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36145) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZAcQ-00062b-6Q for bug-gnu-emacs@gnu.org; Thu, 15 Nov 2012 20:21:18 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TZAd7-0008BQ-OD for bug-gnu-emacs@gnu.org; Thu, 15 Nov 2012 20:22:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Nov 2012 01:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12895 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.135302888531411 (code B ref -1); Fri, 16 Nov 2012 01:22:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Nov 2012 01:21:25 +0000 Original-Received: from localhost ([127.0.0.1]:46396 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TZAcX-0008AZ-8K for submit@debbugs.gnu.org; Thu, 15 Nov 2012 20:21:25 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45625) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TZAcU-0008AR-P6 for submit@debbugs.gnu.org; Thu, 15 Nov 2012 20:21:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TZAbj-0005vh-LL for submit@debbugs.gnu.org; Thu, 15 Nov 2012 20:20:38 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:36626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZAbj-0005vd-FG for submit@debbugs.gnu.org; Thu, 15 Nov 2012 20:20:35 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZAbg-000898-C4 for bug-gnu-emacs@gnu.org; Thu, 15 Nov 2012 20:20:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TZAbd-0005tx-9W for bug-gnu-emacs@gnu.org; Thu, 15 Nov 2012 20:20:32 -0500 Original-Received: from mout.web.de ([212.227.17.12]:59069) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZAbd-0005td-09 for bug-gnu-emacs@gnu.org; Thu, 15 Nov 2012 20:20:29 -0500 Original-Received: from drachen.dragon ([89.204.154.75]) by smtp.web.de (mrweb002) with ESMTPA (Nemesis) id 0LvS9z-1T90zB33nH-0101dI; Fri, 16 Nov 2012 02:20:27 +0100 In-Reply-To: <87a9uj9efm.fsf@gmail.com> (Antoine Levitt's message of "Thu, 15 Nov 2012 14:35:41 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-Provags-ID: V02:K0:VeGnuWcJCb58WpVqydAdeChlif6XyiiZo/dUuKuTZQe 8xaDZzxrCLPZM2v92LP3ZG1tFv696CxniB9fmrgqFGNhEKjk3/ k2gFj1NDfREg5lw+H8Gzbw2yCV7j39oaHTjUjV7dO+Lxtp8Iq6 dTs6PbwSvrWvN5tmCql7UsPa9XcwvCnvFQ2kwigYsqX6YGLfsP S+77Rcd9lRLF+Uh++JpqGayyUASPyo/rEN2dRChZCY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -4.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-Spam-Score: -4.2 (----) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:66978 Archived-At: 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) No general answer to your question, but something like this my be good enough for what you want: (defmacro suppressing-messages (&rest body) `(let (message-log-max) (with-temp-message "" ,@body))) Michael.