[Top][All Lists]

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

Re: file-expand-wildcards should use `save-match-data'

From: Juanma Barranquero
Subject: Re: file-expand-wildcards should use `save-match-data'
Date: Tue, 26 Mar 2002 10:08:56 +0100

On Mon, 25 Mar 2002 17:27:33 -0500, Michael Ernst <address@hidden> wrote:

> In Emacs 21.2, file-expand-wildcards can cause problems in code that calls
> it, because it changes the match-data.  This patch corrects the problem.

Please, see the thread starting on:


Consensus seems to be that user code shouldn't trust the save-match-data
to be consistent across function invocations, unless they're basic
primitives or "functions that have the spirit of a general-purpose
facility". (FWIW, I don't know if file-expand-wildcards matchs that
definition :)


reply via email to

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