From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.devel Subject: Re: problems with flet on last emacs Date: Mon, 12 Nov 2012 09:02:53 +0100 Message-ID: <50A0AD2D.3010304@online.de> References: <87pq8lnd7v.fsf@gmail.com> <87zk7oq5qr.fsf@kuiper.lan.informatimago.com> <871ul0j5ac.fsf@visionobjects.com> <877gurgae5.fsf@gmail.com> <87mx3m7jyd.fsf@googlemail.com> <8762aaljzd.fsf@gmail.com> <87ehohfkxo.fsf@kanis.fr> <871ukhhqua.fsf@googlemail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1352707399 1194 80.91.229.3 (12 Nov 2012 08:03:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Nov 2012 08:03:19 +0000 (UTC) Cc: Stefan Monnier , =?ISO-8859-15?Q?Jo=E3o_T?= =?ISO-8859-15?Q?=E1vora?= To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 12 09:03:29 2012 Return-path: Envelope-to: ged-emacs-devel@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 1TXozP-0006ii-Aa for ged-emacs-devel@m.gmane.org; Mon, 12 Nov 2012 09:03:27 +0100 Original-Received: from localhost ([::1]:35009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXozF-0000Wx-Pk for ged-emacs-devel@m.gmane.org; Mon, 12 Nov 2012 03:03:17 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37711) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXozB-0000Wo-QD for emacs-devel@gnu.org; Mon, 12 Nov 2012 03:03:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TXoz8-00078j-Np for emacs-devel@gnu.org; Mon, 12 Nov 2012 03:03:13 -0500 Original-Received: from moutng.kundenserver.de ([212.227.126.186]:60209) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXoz8-00076H-E2 for emacs-devel@gnu.org; Mon, 12 Nov 2012 03:03:10 -0500 Original-Received: from [192.168.178.27] (brln-4d0c1f7f.pool.mediaWays.net [77.12.31.127]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0LkDdO-1T1EK702Z8-00ba2O; Mon, 12 Nov 2012 09:03:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121025 Thunderbird/16.0.2 In-Reply-To: X-Provags-ID: V02:K0:MQ27qZxKqm69E4PR/TPA5eJi7PqVsDbjQQffamCEnZ4 qNYYo3E0M3fh4Nj3uJplr+3/MwanK6gBnzIaS7HzGn9WltpE2q jjYnD39UFUo/8H6iHHuzidgmtardZVNlOfMAL13fUq8zJ5hrAC cXlcl9un4+XucYW1w3e85fPbmySdTJRJqvz4rKccbM2CofSwPh UoHHqYhquMK474RkAW6wwQb3qX9mEwS9DmM9TzGPj/hPoSI94H 5HGpcBGKgCr46a4EOwdh32e02v3DGVvA+p6N12GLHXwUm1sI7R diCFu97mLEZhhR1jjxuUOBXJ5sKBGZ5S+FSLUkmrz8uTby6t5y KvtDjFI1wYE7x2bE7sTQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.126.186 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:154829 Archived-At: Am 11.11.2012 00:38, schrieb Stefan Monnier: >> (let ((saved (symbol-function 'foo))) >> (unwind-protect >> (progn >> (fset 'foo #'(lambda () >> (message "bar!"))) >> (meta-foo)) >> (fset 'foo saved))) > > Same problem as with flet: the redefinition is hard to find, dynamically > scoped, etc... > > Better use > > (defvar foo-bar nil) > (defadvice foo (around blabla activate) > (if foo-bar (message "bar!") ad-do-it)) > > and then > > ... > (let ((foo-bar t)) > ...) > > So C-h f foo RET will tell you about the redefinition and you can > recover the non-redefined behavior with a simple (setq foo-bar nil). > > > Stefan > > Hi Stefan, while looking with interest and delight at new features, what about make for that process a similar change as was made with bug-tracking. IMO the decision-making process might be done in a more structured way than now - by keeping the final instances. Best, Andreas