From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Johan =?UTF-8?Q?Bockg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#7145: elisp-code behaves differently after byte-compilation Date: Sat, 02 Oct 2010 12:41:18 +0200 Message-ID: <877hi0zxkh.fsf@gnu.org> References: <20101002015349.23590@gmx.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1286017933 970 80.91.229.12 (2 Oct 2010 11:12:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 2 Oct 2010 11:12:13 +0000 (UTC) Cc: Markus Sauermann , 7145@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 02 13:12:10 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P200b-0003G4-Ip for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Oct 2010 13:12:10 +0200 Original-Received: from localhost ([127.0.0.1]:51279 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P200Z-0003En-7J for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Oct 2010 07:12:03 -0400 Original-Received: from [140.186.70.92] (port=48465 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P200Q-0003B4-PP for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2010 07:11:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P2005-0001cD-Ai for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2010 07:11:34 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P2005-0001c5-84 for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2010 07:11:33 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P1zUc-0007UT-JY; Sat, 02 Oct 2010 06:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Johan =?UTF-8?Q?Bockg=C3=A5rd?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Oct 2010 10:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7145 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7145-submit@debbugs.gnu.org id=B7145.128601590328779 (code B ref 7145); Sat, 02 Oct 2010 10:39:02 +0000 Original-Received: (at 7145) by debbugs.gnu.org; 2 Oct 2010 10:38:23 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1zTz-0007U8-6p for submit@debbugs.gnu.org; Sat, 02 Oct 2010 06:38:23 -0400 Original-Received: from smtprelay-h32.telenor.se ([213.150.131.5]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1zTw-0007U2-1n for 7145@debbugs.gnu.org; Sat, 02 Oct 2010 06:38:21 -0400 Original-Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-h32.telenor.se (Postfix) with ESMTP id D64DDE9D0D for <7145@debbugs.gnu.org>; Sat, 2 Oct 2010 12:41:19 +0200 (CEST) X-SENDER-IP: [85.228.194.58] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuE9AK2opkxV5MI6PGdsb2JhbACHb5pNDAEBAQE1LcI4hUQE X-IronPort-AV: E=Sophos;i="4.57,271,1283724000"; d="scan'208";a="1677863980" Original-Received: from c-3ac2e455.04-211-6c6b701.cust.bredbandsbolaget.se (HELO muon.localdomain) ([85.228.194.58]) by ipb4.telenor.se with ESMTP; 02 Oct 2010 12:41:19 +0200 Original-Received: by muon.localdomain (Postfix, from userid 1000) id B35694841FA; Sat, 2 Oct 2010 12:41:18 +0200 (CEST) Mail-Copies-To: never In-Reply-To: (Andreas Schwab's message of "Sat, 02 Oct 2010 10:54:47 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 02 Oct 2010 06:39:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40634 Archived-At: Andreas Schwab writes: > "Markus Sauermann" writes: > >> The following code however shows a case where this is not the case. >> >> --- BEGIN CODE --- >> (let ((fun (lambda () (let ((bar "foo") >> (baz "foo")) >> (eq bar baz))))) >> (list (funcall (byte-compile fun)) >> (funcall fun))) >> --- END CODE--- >> >> Evaluation this code (don't try to byte-compile it, because it is buggy ;-) ) results in: >> >> --- BEGIN OUTPUT --- >> (t nil) >> --- END OUTPUT --- > > This is not a bug. But this is, IMO: (progn (defsubst spooky-action-at-a-distance () (let ((a (concat "a" "bc"))) (store-substring a 0 "123"))) (defun foo () (spooky-action-at-a-distance) (concat "ab" "c")) (byte-compile 'foo) (foo)) => "123"