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#2499: 23.0.91; syntax-ppss / beginning-of-defun not saving match data Date: Sat, 28 Feb 2009 17:09:29 -0500 Message-ID: References: <87myc7ga2r.fsf@freebits.de> <87tz6efqkx.fsf@freebits.de> Reply-To: Stefan Monnier , 2499@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 1235859883 4055 80.91.229.12 (28 Feb 2009 22:24:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Feb 2009 22:24:43 +0000 (UTC) Cc: 2499@emacsbugs.donarmstrong.com To: "Tobias C. Rittweiler" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 28 23:25:59 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 1LdXd6-0004hB-4n for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Feb 2009 23:25:56 +0100 Original-Received: from localhost ([127.0.0.1]:38497 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdXbl-0006Ld-7M for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Feb 2009 17:24:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LdXaz-00064D-6B for bug-gnu-emacs@gnu.org; Sat, 28 Feb 2009 17:23:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LdXaw-00062b-Gh for bug-gnu-emacs@gnu.org; Sat, 28 Feb 2009 17:23:44 -0500 Original-Received: from [199.232.76.173] (port=37840 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdXaw-00062N-Bm for bug-gnu-emacs@gnu.org; Sat, 28 Feb 2009 17:23:42 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:47327) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LdXav-0003yM-JZ for bug-gnu-emacs@gnu.org; Sat, 28 Feb 2009 17:23:42 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1SMNcNn014113; Sat, 28 Feb 2009 14:23:39 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1SMF9uo012070; Sat, 28 Feb 2009 14:15:09 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 28 Feb 2009 22:15:08 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2499 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2499-submit@emacsbugs.donarmstrong.com id=B2499.123585897710275 (code B ref 2499); Sat, 28 Feb 2009 22:15:08 +0000 Original-Received: (at 2499) by emacsbugs.donarmstrong.com; 28 Feb 2009 22:09:37 +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.13.8/8.13.8/Debian-3) with ESMTP id n1SM9YY7010268 for <2499@emacsbugs.donarmstrong.com>; Sat, 28 Feb 2009 14:09:36 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAEJFqUnO+JhN/2dsb2JhbACBWNUmhBoGg3c X-IronPort-AV: E=Sophos;i="4.38,283,1233550800"; d="scan'208";a="34538425" Original-Received: from 206-248-152-77.dsl.teksavvy.com (HELO pastel.home) ([206.248.152.77]) by ironport2-out.teksavvy.com with ESMTP; 28 Feb 2009 17:09:29 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 2E00A7FE9; Sat, 28 Feb 2009 17:09:29 -0500 (EST) In-Reply-To: <87tz6efqkx.fsf@freebits.de> (Tobias C. Rittweiler's message of "Sat, 28 Feb 2009 17:56:14 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sat, 28 Feb 2009 17:23:44 -0500 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:25866 Archived-At: >> > (i) `beginning-of-defun' is allowed to not save match data. If so, >> > please document it. >> 99.9% of the functions are allowed to not save match data. > Oh, I didn't know that! I thought the policy was the other way > around. (Perhaps 34.6, The Match Data, should make this policy more > explicit. If so, and you say so, I'll prepare a patch.) Patch welcome. >> We do not bother to document it. We should document the functions >> that are not allowed to do it, OTOH. > I think it's still worth to think about making `syntax-ppss' saving the > match data as this function may easily be implicitly invoked by > something deep down. Basically any function that does a non-trivial amount of work should be expected to affect the match-data. I.e. it's the responsability of the match-data user to make sure she reads the match-data soon after the regexp match took place, rather than responsability of all other functions to preserve the match-data. Stefan