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#9907: 24.0.90; eshell:for command destructivly modifies list variables Date: Sun, 30 Oct 2011 04:00:55 -0400 Message-ID: References: <87ehxv5ral.fsf@luca.i-did-not-set--mail-host-address--so-tickle-me> <87boszjap9.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1319961824 30452 80.91.229.12 (30 Oct 2011 08:03:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 30 Oct 2011 08:03:44 +0000 (UTC) Cc: 9907@debbugs.gnu.org To: Thierry Volpiatto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 30 09:03:40 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RKQMk-0000fn-O6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Oct 2011 09:03:38 +0100 Original-Received: from localhost ([::1]:58258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKQMj-00053E-Qi for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Oct 2011 04:03:37 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:36661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKQMg-00052U-TZ for bug-gnu-emacs@gnu.org; Sun, 30 Oct 2011 04:03:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RKQMg-0003nq-05 for bug-gnu-emacs@gnu.org; Sun, 30 Oct 2011 04:03:34 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32951) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKQL8-0003Z2-Ff for bug-gnu-emacs@gnu.org; Sun, 30 Oct 2011 04:01:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RKQN8-0001p8-DB for bug-gnu-emacs@gnu.org; Sun, 30 Oct 2011 04:04:02 -0400 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: Sun, 30 Oct 2011 08:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9907 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9907-submit@debbugs.gnu.org id=B9907.13199617866944 (code B ref 9907); Sun, 30 Oct 2011 08:04:02 +0000 Original-Received: (at 9907) by debbugs.gnu.org; 30 Oct 2011 08:03:06 +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 1RKQMD-0001nx-SD for submit@debbugs.gnu.org; Sun, 30 Oct 2011 04:03:06 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RKQMA-0001nR-8s for 9907@debbugs.gnu.org; Sun, 30 Oct 2011 04:03:03 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id p9U80uDh029110; Sun, 30 Oct 2011 04:00:56 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id E9A1358E17; Sun, 30 Oct 2011 04:00:55 -0400 (EDT) In-Reply-To: <87boszjap9.fsf@gmail.com> (Thierry Volpiatto's message of "Sun, 30 Oct 2011 06:43:46 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4025=0 X-NAI-Spam-Version: 2.2.0.9286 : core <4025> : streams <696668> : uri <995236> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 30 Oct 2011 04:04:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:53318 Archived-At: >>> Do this two times. After the first time the value of `load-path' is >>> gone, because the lisp code implementing the loop destructively modifies >>> this list. Idea of the following solution: Copy it. >> Thanks. I've installed the patch below instead, which uses backquotes >> to clarify the code and simply avoids the in-place modification instead >> of copying the list. > Eshell hang forever with this patch when using initial example given by > Andy. Sorry 'bout that. Should be fixed now, but please confirm. Stefan