GNU bug report logs - #2499
doc fix for searching.texi

Previous Next

Package: emacs;

Reported by: tcr <at> freebits.de

Date: Fri, 27 Feb 2009 15:50:02 UTC

Severity: minor

Tags: fixed, notabug, patch

Fixed in version 24.1

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 2499 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: "Tobias C. Rittweiler" <tcr <at> freebits.de>
Cc: 2499 <at> debbugs.gnu.org
Subject: Re: bug#2499: 23.0.91; syntax-ppss / beginning-of-defun not saving match data
Date: Sat, 28 Feb 2009 17:09:29 -0500
>> >   (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




This bug report was last modified 14 years and 18 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.