From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#3863: 23.1.50; possible save-match-data in copyright.el Date: Thu, 16 Jul 2009 23:23:29 -0400 Message-ID: References: <87bpnkk88s.fsf@stupidchicken.com> Reply-To: Stefan Monnier , 3863@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1247801872 9998 80.91.229.12 (17 Jul 2009 03:37:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jul 2009 03:37:52 +0000 (UTC) Cc: 3863@emacsbugs.donarmstrong.com, Kevin Ryde , Chong Yidong To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 17 05:37:44 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MReGV-0002j8-Sd for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Jul 2009 05:37:44 +0200 Original-Received: from localhost ([127.0.0.1]:43674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MReGU-0000xB-T4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Jul 2009 23:37:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MReGP-0000wH-VX for bug-gnu-emacs@gnu.org; Thu, 16 Jul 2009 23:37:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MReGL-0000tO-Ei for bug-gnu-emacs@gnu.org; Thu, 16 Jul 2009 23:37:37 -0400 Original-Received: from [199.232.76.173] (port=60337 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MReGL-0000tK-47 for bug-gnu-emacs@gnu.org; Thu, 16 Jul 2009 23:37:33 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:50455) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MReGK-0008Jz-G1 for bug-gnu-emacs@gnu.org; Thu, 16 Jul 2009 23:37:32 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6H3bSLR024100; Thu, 16 Jul 2009 20:37:30 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n6H3U4t1022800; Thu, 16 Jul 2009 20:30:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 17 Jul 2009 03:30:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3863 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3863-submit@emacsbugs.donarmstrong.com id=B3863.124780102021973 (code B ref 3863); Fri, 17 Jul 2009 03:30:04 +0000 Original-Received: (at 3863) by emacsbugs.donarmstrong.com; 17 Jul 2009 03:23:40 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6H3NZAX021967 for <3863@emacsbugs.donarmstrong.com>; Thu, 16 Jul 2009 20:23:37 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Al8FAOuLX0rO+LUT/2dsb2JhbACBUc9AhA0FhnU X-IronPort-AV: E=Sophos;i="4.42,415,1243828800"; d="scan'208";a="41774704" Original-Received: from 206-248-181-19.dsl.teksavvy.com (HELO ceviche.home) ([206.248.181.19]) by ironport2-out.teksavvy.com with ESMTP; 16 Jul 2009 23:23:30 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id D0529B41BF; Thu, 16 Jul 2009 23:23:29 -0400 (EDT) In-Reply-To: (Lennart Borgman's message of "Thu, 16 Jul 2009 20:42:42 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 16 Jul 2009 23:37:37 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:29482 Archived-At: > I don't think I understand, but it sounds like this is a reason why > y-or-n-p should save match-data... Here we go again: All functions destroy the match-data except for a few rare exceptions, which are simple functions doing little work. > Is there any reason not to let y-or-n-p save match data? If you think y-or-n-p deserves saving the match-data then pretty much all other functions deserve that change as well. And since save-match-data is somewhat costly, it would imply a singificant performance impact. Stefan PS: Worse yet: during y-or-n-p, the buffer might be completely changed by the code run asynchronously, so the "saved" match data may not even have any meaning any more.