From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: replace-regexp-in-string, using the dyn scoped variable STR Date: Wed, 11 Nov 2009 21:40:51 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1257972096 802 80.91.229.12 (11 Nov 2009 20:41:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Nov 2009 20:41:36 +0000 (UTC) Cc: Emacs-Devel devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 11 21:41:29 2009 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 1N8K0P-000104-9s for ged-emacs-devel@m.gmane.org; Wed, 11 Nov 2009 21:41:29 +0100 Original-Received: from localhost ([127.0.0.1]:43849 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8K0O-0002Sx-PO for ged-emacs-devel@m.gmane.org; Wed, 11 Nov 2009 15:41:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N8K0I-0002QI-5g for emacs-devel@gnu.org; Wed, 11 Nov 2009 15:41:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N8K0D-0002HO-A6 for emacs-devel@gnu.org; Wed, 11 Nov 2009 15:41:21 -0500 Original-Received: from [199.232.76.173] (port=44510 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8K0D-0002H0-2W for emacs-devel@gnu.org; Wed, 11 Nov 2009 15:41:17 -0500 Original-Received: from mail-yw0-f194.google.com ([209.85.211.194]:36069) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N8K0C-0000cx-OY for emacs-devel@gnu.org; Wed, 11 Nov 2009 15:41:16 -0500 Original-Received: by ywh32 with SMTP id 32so1484436ywh.14 for ; Wed, 11 Nov 2009 12:41:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=XC3s2VnwyshqRueecu8m8pRfbajXOtE8vI8GZoT8YMc=; b=RVfGVNRuxBRS1GBpvoVvz2NNDJpBnt9Iuy6EtbyFh1TfGj3dH/v3S0M2i//S84tP38 RCSYCBNrhUovnq92OmXC0ESfxgkZqkpAq1WbMhaobW/L0GgkjgPemFCtboVkDHkuXoXj CyYVe5pDbtkq5QrJ5Xjk0U9XwrJpl+JG7Ex5o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=ke1b8GmEQ7zhqxi7puiBqt0s6UPuOK2En3l8PZ4g1RmJVcSWGwwK8+Epb0sQeh1UKf a674Uip7km+hQc8tF+I8go4W1DzgPUDmgGHmJjYZuBCjvKVUteuGIt6Vt07vO2in8YDS stI7iMG8HrOpI7Me2zjO6TNV6S1Nvqkua9Im8= Original-Received: by 10.101.133.5 with SMTP id k5mr2092190ann.22.1257972071079; Wed, 11 Nov 2009 12:41:11 -0800 (PST) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:116844 Archived-At: On Wed, Nov 11, 2009 at 9:25 PM, Stefan Monnier wrote: >> Sometimes it is necessary to use the variable str which is dynamically >> scoped in replace-regexp-in-string. Below is an example of this. > > This is bad practice. =C2=A0It may seem convenient in some cases, but we > definitely do not want to encourage it. That is ok with me, but then maybe we could find another way to to the replacement in cases like this conventiently?