[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Global match data considered harmful

From: Stefan Monnier
Subject: Re: Global match data considered harmful
Date: Tue, 11 May 2010 09:54:24 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>> The rule for where to place a save-match-data is:
>> around the code run between "looking-at" and "match-string-no-properties".
> *snort*  I'm with Juanma.

I'm not sure what that means.

> This is just so wrong, you know.  Not returning the match data, instead
> storing it in a global object, is arguably the worst design decision
> in all of Emacs.

Preaching to the choir, eh?
[ Well "the worst" I don't know: it's not like there's a shortage of
  global-abuse in Emacs. ]


reply via email to

[Prev in Thread] Current Thread [Next in Thread]