From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Geoff Gole Newsgroups: gmane.emacs.devel Subject: (require 'cus-load) clobbers match-data Date: Sun, 14 Feb 2010 13:13:15 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1266124413 9421 80.91.229.12 (14 Feb 2010 05:13:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Feb 2010 05:13:33 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 14 06:13:29 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NgWnP-0000kO-4p for ged-emacs-devel@m.gmane.org; Sun, 14 Feb 2010 06:13:27 +0100 Original-Received: from localhost ([127.0.0.1]:43311 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NgWnO-0004hw-H0 for ged-emacs-devel@m.gmane.org; Sun, 14 Feb 2010 00:13:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NgWnI-0004hL-EY for emacs-devel@gnu.org; Sun, 14 Feb 2010 00:13:20 -0500 Original-Received: from [140.186.70.92] (port=47890 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NgWnG-0004gn-U2 for emacs-devel@gnu.org; Sun, 14 Feb 2010 00:13:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NgWnE-0004tG-1p for emacs-devel@gnu.org; Sun, 14 Feb 2010 00:13:18 -0500 Original-Received: from mail-gx0-f211.google.com ([209.85.217.211]:42043) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NgWnD-0004sy-Vg for emacs-devel@gnu.org; Sun, 14 Feb 2010 00:13:16 -0500 Original-Received: by gxk3 with SMTP id 3so3337688gxk.6 for ; Sat, 13 Feb 2010 21:13:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=lNoA9K/vlGggVXQpI0kkSbeUbxBD8+32LgToeqhMPIc=; b=M0CyAA7h2KU2yzEboP7sw0PEzYxoFM4BYUADSvTrESTN7MVUnmMnhuGX0oKTuxxpko pM28xhB4Qa4EXAn9MWWmv/3fnBiGIBNZ95Xy3tpie8n82giRV8+1zYeGR72bqIGPGcvf T1MgzTW+VuOcG6H1LOizGc2IL6BMqhRxP7SF8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=gV4Qd6ANO4kHOYWA0op7XWusZ3M0f6cPk6fds5yDNTthWvOfXg2Gi9re2nuCNncbcq MSszpkKF7xctBzkgspr7UMK+W4vtTxZsTBbfzFAsnkycQOD9Noghk+r9/ec/3US5tTA9 5pscaR7QuFVxueKrcJNotO9DBqwpQ5paqYs+k= Original-Received: by 10.150.128.29 with SMTP id a29mr6312794ybd.243.1266124395078; Sat, 13 Feb 2010 21:13:15 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:121110 Archived-At: While trying to puzzle out bug 5533 , I've found that (require 'cus-load) will stomp on match data if the file is not already loaded: emacs -Q (let ((md (match-data))) (require 'cus-load) (equal md (match-data))) => t This is what causes the bug, but I can't figure out why it is happening. cus-load.el is just a big list of (put ...) forms. Why is it stomping on the match data? Anyway, if anybody knows how to stop it doing that, that would fix bug 5533. Maybe require should save and restore the match data itself?