From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tcr@freebits.de Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#2499: 23.0.91; syntax-ppss / beginning-of-defun not saving match data Date: Fri, 27 Feb 2009 16:42:52 +0100 Message-ID: <87myc7ga2r.fsf@freebits.de> Reply-To: tcr@freebits.de, 2499@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 X-Trace: ger.gmane.org 1235750712 15858 80.91.229.12 (27 Feb 2009 16:05:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Feb 2009 16:05:12 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 27 17:06:28 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 1Ld5E1-0005Ff-6E for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Feb 2009 17:06:11 +0100 Original-Received: from localhost ([127.0.0.1]:51514 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ld5Cg-0006CR-5z for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Feb 2009 11:04:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ld5Bg-0005Yw-0z for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2009 11:03:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ld5Bd-0005WQ-BZ for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2009 11:03:43 -0500 Original-Received: from [199.232.76.173] (port=60831 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ld5Bd-0005WM-0a for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2009 11:03:41 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:36595) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ld5Bc-0003qo-7c for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2009 11:03:40 -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 n1RG3c0w007101; Fri, 27 Feb 2009 08:03:38 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1RFo3Sw003074; Fri, 27 Feb 2009 07:50:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: tcr@freebits.de Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 27 Feb 2009 15:50:02 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2499 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12357494241535 (code B ref -1); Fri, 27 Feb 2009 15:50:02 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 27 Feb 2009 15:43:44 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1RFhdlr001497 for ; Fri, 27 Feb 2009 07:43:41 -0800 Original-Received: from mx10.gnu.org ([199.232.76.166]:60086) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Ld4q0-0003Fn-De for emacs-pretest-bug@gnu.org; Fri, 27 Feb 2009 10:41:20 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ld4sB-0000RI-MP for emacs-pretest-bug@gnu.org; Fri, 27 Feb 2009 10:43:36 -0500 Original-Received: from a022.reverse.yawsp.de ([62.27.20.22]:38474 helo=freebits.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ld4sB-0000QK-4x for emacs-pretest-bug@gnu.org; Fri, 27 Feb 2009 10:43:35 -0500 Original-Received: from host145.natpool.mwn.de ([138.246.7.145] helo=thaleron) by freebits.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.44) id 1Ld4rz-0003s4-Gx for emacs-pretest-bug@gnu.org; Fri, 27 Feb 2009 15:43:23 +0000 X-freebits.de-MailScanner-Information: http://freebits.de X-freebits.de-MailScanner: Sauber X-freebits.de-MailScanner-SpamCheck: not spam, SpamAssassin (notcached, Wertung=1.897, benoetigt 6, FROM_NO_LOWER 1.90) X-freebits.de-MailScanner-SpamScore: s X-MailScanner-From: tcr@freebits.de X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 27 Feb 2009 11:03:43 -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:25782 gmane.emacs.pretest.bugs:24005 Archived-At: `beginning-of-defun' (and `syntax-ppss' as it invokes the former by the variable `syntax-begin-function') does not save match data. The issue also applies to 23.0.60.1, and 22.1.1. Test case: (let ((buffer-sexpr "(defun *HERE*")) (with-temp-buffer (lisp-mode) (insert buffer-sexpr) (search-backward "*HERE*") (let ((old (match-data))) (progn (beginning-of-defun)) (equal old (match-data))))) ==> nil There are several possible options now: (i) `beginning-of-defun' is allowed to not save match data. If so, please document it. (ii) If (i) is true, still consider whether `syntax-ppss' is allowed to not save match data, too. Perhaps it should rather funcall `syntax-begin-function' wrapped in a `save-match-data'. Whatever the decision, please document it. Thank you! In GNU Emacs 23.0.91.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2009-02-27 on thaleron Windowing system distributor `The X.Org Foundation', version 11.0.10400090 configured using `configure '--prefix=/home/tcr/software/emacs-cvs' '--with-x-toolkit=gtk' '--without-gpm' '--with-x' '--without-xpm' '--enable-asserts' 'CFLAGS=-g'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: eldoc-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x b * C-y C-M-x C-j M-d s a v e - m a t c h - d a t a C-e C-j C-M-k r p r o g n M-x r e p o r t - e m a c s - b u g Recent messages: Loading /home/tcr/.emacs.d/config/lisp-config.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Mark set nil -- Diese Nachricht wurde auf Viren und andere gefaerliche Inhalte untersucht und ist - aktuelle Virenscanner vorausgesetzt - sauber. Freebits E-Mail Virus Scanner