From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: "simplifications" Date: Mon, 19 Nov 2007 10:44:27 -0500 Message-ID: References: <86ejem1pig.fsf@lola.quinscape.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1195487097 17310 80.91.229.12 (19 Nov 2007 15:44:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Nov 2007 15:44:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Juanma Barranquero" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 19 16:45:04 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Iu8nx-0002hS-B2 for ged-emacs-devel@m.gmane.org; Mon, 19 Nov 2007 16:44:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iu8nj-0007BT-LK for ged-emacs-devel@m.gmane.org; Mon, 19 Nov 2007 10:44:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iu8na-00078Q-Iv for emacs-devel@gnu.org; Mon, 19 Nov 2007 10:44:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iu8nY-00077h-RS for emacs-devel@gnu.org; Mon, 19 Nov 2007 10:44:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iu8nY-00077c-I8 for emacs-devel@gnu.org; Mon, 19 Nov 2007 10:44:32 -0500 Original-Received: from tomts25.bellnexxia.net ([209.226.175.188] helo=tomts25-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iu8nX-000844-M0 for emacs-devel@gnu.org; Mon, 19 Nov 2007 10:44:32 -0500 Original-Received: from ceviche.home ([70.55.147.211]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20071119154427.SDR19497.tomts25-srv.bellnexxia.net@ceviche.home> for ; Mon, 19 Nov 2007 10:44:27 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id C4A67B42DA; Mon, 19 Nov 2007 10:44:27 -0500 (EST) In-Reply-To: (Juanma Barranquero's message of "Mon, 19 Nov 2007 16:39:33 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:83658 Archived-At: >> it doesn't account for the case where >> you do >> (defsubst cadr (debug-on-error) (car (cdr debug-on-error))) >> in which case the optimization is not semantics preserving" > And I'n not sure it should... I think I agree with David here: if > you're using defsubst to optimize, you should expect some gotchas. Well, my optimization is not specific to defsubst, so it will also remove the let-binding in: (let ((debug-on-error t)) (car (car (cdr x)))) In any case, if you want a "fast and loose" defsubst, it's there already under the name defsubst*. Stefan