From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: Re: file-expand-wildcards should use `save-match-data' Date: Tue, 26 Mar 2002 10:08:56 +0100 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <20020326100210.7E7C.LEKTU@terra.es> References: <200203252227.RAA16968@meoptiplex.lcs.mit.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1017136646 17929 127.0.0.1 (26 Mar 2002 09:57:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 26 Mar 2002 09:57:26 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16pnhm-0004ew-00 for ; Tue, 26 Mar 2002 10:57:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16pnhj-0006XC-00; Tue, 26 Mar 2002 04:57:23 -0500 Original-Received: from [62.22.27.141] (helo=mail.peoplecall.com) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16pmwt-00039a-00 for ; Tue, 26 Mar 2002 04:08:59 -0500 Original-Received: from jbarranquero (jbarranquero.ofi.peoplecall.com [62.22.27.143]) by mail.peoplecall.com (8.11.6/8.11.6) with ESMTP id g2Q98tJ18007; Tue, 26 Mar 2002 10:08:55 +0100 Original-To: Michael Ernst In-Reply-To: <200203252227.RAA16968@meoptiplex.lcs.mit.edu> X-Mailer: Becky! ver. 2.00.10 Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:189 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:189 On Mon, 25 Mar 2002 17:27:33 -0500, Michael Ernst 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: http://mail.gnu.org/pipermail/emacs-devel/2002-February/006028.html 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 :) /L/e/k/t/u