From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#12895: 24.3.50; Replacement for flet Date: Fri, 16 Nov 2012 10:24:45 -0500 Message-ID: References: <87a9uj9efm.fsf@gmail.com> <87lie27vvd.fsf@gmail.com> <87wqxm5vzh.fsf@gmail.com> <87vcd538o2.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1353079523 11076 80.91.229.3 (16 Nov 2012 15:25:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Nov 2012 15:25:23 +0000 (UTC) Cc: 12895@debbugs.gnu.org To: Antoine Levitt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 16 16:25:34 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 1TZNnR-0004VE-7A for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Nov 2012 16:25:33 +0100 Original-Received: from localhost ([::1]:52443 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZNnH-0003Da-5l for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Nov 2012 10:25:23 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZNnC-0003CM-74 for bug-gnu-emacs@gnu.org; Fri, 16 Nov 2012 10:25:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TZNn9-0007h8-4Z for bug-gnu-emacs@gnu.org; Fri, 16 Nov 2012 10:25:18 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZNn9-0007h4-0Q for bug-gnu-emacs@gnu.org; Fri, 16 Nov 2012 10:25:15 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TZNnt-0003U2-PJ for bug-gnu-emacs@gnu.org; Fri, 16 Nov 2012 10:26:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Nov 2012 15:26: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 Original-Received: via spool by 12895-submit@debbugs.gnu.org id=B12895.135307953613359 (code B ref 12895); Fri, 16 Nov 2012 15:26:01 +0000 Original-Received: (at 12895) by debbugs.gnu.org; 16 Nov 2012 15:25:36 +0000 Original-Received: from localhost ([127.0.0.1]:48386 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TZNnT-0003TQ-Ie for submit@debbugs.gnu.org; Fri, 16 Nov 2012 10:25:35 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:38458) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TZNnS-0003TH-3p for 12895@debbugs.gnu.org; Fri, 16 Nov 2012 10:25:34 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09sr+ZY/2dsb2JhbABEsEiDSYEIghUBAQQBViMFCws0EhQYDSSIHAW6CZBEA4hCmnGBWIMH X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="207774092" Original-Received: from 108-175-230-88.dsl.teksavvy.com (HELO pastel.home) ([108.175.230.88]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 16 Nov 2012 10:24:46 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id EDC0A59346; Fri, 16 Nov 2012 10:24:45 -0500 (EST) In-Reply-To: <87vcd538o2.fsf@gmail.com> (Antoine Levitt's message of "Fri, 16 Nov 2012 15:49:01 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Spam-Score: 0.8 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-Spam-Score: 0.8 (/) 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:66998 Archived-At: > I did like flet, though, and in general, I think it's annoying to > users to remove/deprecate functionality that are neat ways to get > inside lisp code from outside (dynamic-scoping overrides, advices, > etc.) just because they are bad practice and make debugging harder. The problem with flet is not only that it's doing dangerous things but also that it's used in code that does not need those dangerous things. And do not that it was not removed. It was just marked obsolete. The main purpose of this obsolescence warning is to change the coding style so that overrides are used explicitly where they're needed and non-overriding local definitions are used where the override is not needed, so the code is more clear. Advising is definitely not on the way out. I even just added a new lighter weight advice package. Stefan