From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: flet, cl-flet, cl-letf in 24.3 Date: Sun, 21 Apr 2013 09:07:47 -0700 Message-ID: References: <5c1e7b99-1d04-46fe-a0d0-3709a468add7@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1366560505 4885 80.91.229.3 (21 Apr 2013 16:08:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Apr 2013 16:08:25 +0000 (UTC) To: , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 21 18:08:29 2013 Return-path: Envelope-to: geh-help-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 1UTwoX-0001LU-Ie for geh-help-gnu-emacs@m.gmane.org; Sun, 21 Apr 2013 18:08:29 +0200 Original-Received: from localhost ([::1]:47173 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTwoX-00074X-48 for geh-help-gnu-emacs@m.gmane.org; Sun, 21 Apr 2013 12:08:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTwoA-0006oB-5J for help-gnu-emacs@gnu.org; Sun, 21 Apr 2013 12:08:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UTwo9-0002mf-8W for help-gnu-emacs@gnu.org; Sun, 21 Apr 2013 12:08:06 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:36829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTwo9-0002mT-32 for help-gnu-emacs@gnu.org; Sun, 21 Apr 2013 12:08:05 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r3LG82pU023753 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 21 Apr 2013 16:08:03 GMT Original-Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r3LG81cl022039 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 21 Apr 2013 16:08:01 GMT Original-Received: from abhmt104.oracle.com (abhmt104.oracle.com [141.146.116.56]) by userz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r3LG80Zm029680; Sun, 21 Apr 2013 16:08:00 GMT Original-Received: from dradamslap1 (/71.202.147.44) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 21 Apr 2013 09:08:00 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac4+iFkAtZAMx1NiS5mzCa+pJoJeSgAINdxQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90286 Archived-At: > > If you have read the doc and you feel it does not make > > things clear, consider filing a doc bug: `M-x report-emacs-bug'. > > I don't even have emacs 24.3 installed. I'm referring to the > documentation [1,2,3,4]. Together with the notification > `flet' is an obsolete macro (as of 24.3); use either > `cl-flet' or `cl-letf'. > as reported here [5], this documentation does not really tell > me what to do if I want to keep relying on the dynamic > scoping of flet. A brief google search [6] leads me to believe > that (cl-letf (((symbol-function 'foo) #'(lambda (...) ...))) ...) > is the suggested solution, however I wanted to make sure that > is the case. It is good to ask the question here, of course, and someone will likely post a good answer soon. > In any case if that were the sugggested way, it should maybe > be added to one of the documentation sites [1,2,3,4]. I'd be > happy to file a report on that. Please do. That can help Emacs Dev understand what might need to be done to make things clearer. If there is a misunderstanding wrt the references you cite, Emacs Dev will likely let you know that too. Just becoming aware of a misunderstanding can be helpful input to those trying to communicate better.