From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Should save-match-data bind inhibit-changing-match-data to nil? Date: Thu, 29 Nov 2007 11:49:43 +0100 Message-ID: <85ir3l5nso.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1196333383 28764 80.91.229.12 (29 Nov 2007 10:49:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Nov 2007 10:49:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 29 11:49:52 2007 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.50) id 1Ixgxr-0008MG-Jf for ged-emacs-devel@m.gmane.org; Thu, 29 Nov 2007 11:49:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ixgxc-0006to-3B for ged-emacs-devel@m.gmane.org; Thu, 29 Nov 2007 05:49:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IxgxZ-0006tZ-P5 for emacs-devel@gnu.org; Thu, 29 Nov 2007 05:49:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IxgxW-0006tI-BM for emacs-devel@gnu.org; Thu, 29 Nov 2007 05:49:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IxgxW-0006tB-5Y for emacs-devel@gnu.org; Thu, 29 Nov 2007 05:49:30 -0500 Original-Received: from mail-in-03.arcor-online.net ([151.189.21.43]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IxgxV-0000Fz-MJ for emacs-devel@gnu.org; Thu, 29 Nov 2007 05:49:29 -0500 Original-Received: from mail-in-04-z2.arcor-online.net (mail-in-04-z2.arcor-online.net [151.189.8.16]) by mail-in-03.arcor-online.net (Postfix) with ESMTP id 161DD143642 for ; Thu, 29 Nov 2007 11:49:28 +0100 (CET) Original-Received: from mail-in-16.arcor-online.net (mail-in-16.arcor-online.net [151.189.21.56]) by mail-in-04-z2.arcor-online.net (Postfix) with ESMTP id 04B70ABAEC for ; Thu, 29 Nov 2007 11:49:28 +0100 (CET) Original-Received: from lola.goethe.zz (dslb-084-061-009-099.pools.arcor-ip.net [84.61.9.99]) by mail-in-16.arcor-online.net (Postfix) with ESMTP id E8D651A4C92 for ; Thu, 29 Nov 2007 11:49:27 +0100 (CET) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 2F8FF1C4D3AA; Thu, 29 Nov 2007 11:49:43 +0100 (CET) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-Virus-Scanned: ClamAV 0.91.2/4950/Thu Nov 29 09:49:26 2007 on mail-in-16.arcor-online.net X-Virus-Status: Clean X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:84293 Archived-At: Hi, I was thinking about using inhibit-changing-match-data in replace.el for a number of things. Now the tricky part is what to do with operations that can lead to the user switching windows and similar? It is an obvious fix to wrap them in save-match-data. But one would need to set inhibit-changing-match-data to t at the same time. Is this something that save-match-data could/should do in general? After all, there is not much of a point to save the match data (except that it gets moved into markers instead of integers, which _is_ a difference when the user is editing) when it can't change, anyway? -- David Kastrup, Kriemhildstr. 15, 44793 Bochum