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#12622: replace-regexp-in-string Date: Fri, 12 Oct 2012 10:22:06 -0400 Message-ID: References: <5076D4F4.2020404@easy-emacs.de> <5076F5E8.8090205@easy-emacs.de> <5077B987.2060100@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1350051800 21380 80.91.229.3 (12 Oct 2012 14:23:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Oct 2012 14:23:20 +0000 (UTC) Cc: 12622@debbugs.gnu.org, Andreas Schwab To: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 12 16:23:26 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 1TMg97-0006TP-HP for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Oct 2012 16:23:25 +0200 Original-Received: from localhost ([::1]:35092 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMg90-0006d8-PI for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Oct 2012 10:23:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMg8u-0006d3-Jl for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2012 10:23:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMg8t-0000p4-I2 for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2012 10:23:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMg8t-0000p0-Ee for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2012 10:23:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TMg9h-0007Yk-Lg for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2012 10:24:01 -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: Fri, 12 Oct 2012 14:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12622 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 12622-submit@debbugs.gnu.org id=B12622.135005178528985 (code B ref 12622); Fri, 12 Oct 2012 14:24:01 +0000 Original-Received: (at 12622) by debbugs.gnu.org; 12 Oct 2012 14:23:05 +0000 Original-Received: from localhost ([127.0.0.1]:41133 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TMg8n-0007XS-Gz for submit@debbugs.gnu.org; Fri, 12 Oct 2012 10:23:05 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:13137) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TMg8m-0007Wz-37 for 12622@debbugs.gnu.org; Fri, 12 Oct 2012 10:23:04 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09FxLQG/2dsb2JhbABEtBGBCIIVAQEEAVYjBQsLNBIUGA0kiBwFugmQRAOjM4FYgwU X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="201265665" Original-Received: from 69-196-180-6.dsl.teksavvy.com (HELO pastel.home) ([69.196.180.6]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 12 Oct 2012 10:22:07 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 8B85759519; Fri, 12 Oct 2012 10:22:07 -0400 (EDT) In-Reply-To: <5077B987.2060100@easy-emacs.de> ("Andreas =?UTF-8?Q?R=C3=B6hler?="'s message of "Fri, 12 Oct 2012 08:32:39 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list 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:65521 Archived-At: > Nonetheless consider it a design flaw, us it requires a argument taking > function, where a expression just to evaluate would suffice. You need some way to distinguish "here's an expression that will return the string that needs to be passed as argument" from "here's the expression that needs to be passed as argument, to be evaluated later in each iteration of the loop". The distinction is made by wrapping the expression in a `lambda'. Stefan