all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: replace-regexp-in-string, using the dyn scoped variable STR
Date: Wed, 11 Nov 2009 21:40:51 +0100	[thread overview]
Message-ID: <e01d8a50911111240r58abe55dx9da25b6365177d5@mail.gmail.com> (raw)
In-Reply-To: <jwvws1wlsmp.fsf-monnier+emacs@gnu.org>

On Wed, Nov 11, 2009 at 9:25 PM, Stefan Monnier
<monnier@iro.umontreal.ca> 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.  It 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?




  reply	other threads:[~2009-11-11 20:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-11 19:18 replace-regexp-in-string, using the dyn scoped variable STR Lennart Borgman
2009-11-11 20:25 ` Stefan Monnier
2009-11-11 20:40   ` Lennart Borgman [this message]
2009-11-12  9:59 ` Juri Linkov
2009-11-12 10:17   ` Lennart Borgman
2009-11-12 15:26   ` Stefan Monnier
2009-11-12 15:58     ` Andreas Schwab
2009-11-12 17:05       ` Stefan Monnier
2009-11-12 22:07         ` Lennart Borgman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e01d8a50911111240r58abe55dx9da25b6365177d5@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.