emacs-devel
[Top][All Lists]
Advanced

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

Global match data considered harmful


From: Stephen J. Turnbull
Subject: Global match data considered harmful
Date: Tue, 11 May 2010 11:09:25 +0900

Stefan Monnier writes:

 > 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.

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.



reply via email to

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