GNU bug report logs - #9282
Mention the current-buffer requirement in `match-string{, -no-properties}' docstring

Previous Next

Package: emacs;

Reported by: Štěpán Němec <stepnem <at> gmail.com>

Date: Thu, 11 Aug 2011 15:32:02 UTC

Severity: minor

Tags: fixed

Fixed in version 24.1

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Štěpán Němec <stepnem <at> gmail.com>
To: 9282 <at> debbugs.gnu.org
Subject: bug#9282: Mention the current-buffer requirement in `match-string{, -no-properties}' docstring
Date: Thu, 11 Aug 2011 17:25:09 +0200
As the info documentation points out[1], when retrieving match data for
a buffer (as opposed to a string), `match-string{,-no-properties}' _must_
be called with the matched buffer current. This is a critical
requirement, so it should also be mentioned in the doc strings, not only
the Elisp manual.

[1] (info "(elisp)Simple Match Data")

-- 
Štěpán




This bug report was last modified 13 years and 342 days ago.

Previous Next


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