From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Francis Litterio Newsgroups: gmane.emacs.devel Subject: Patch to docstring of function string-match. Date: Thu, 21 Nov 2002 11:11:30 -0500 Sender: emacs-devel-admin@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1037895247 16458 80.91.224.249 (21 Nov 2002 16:14:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 21 Nov 2002 16:14:07 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Etxn-0004GL-00 for ; Thu, 21 Nov 2002 17:13:59 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18Eu1X-0003Bj-00 for ; Thu, 21 Nov 2002 17:17:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18Ety4-000309-00; Thu, 21 Nov 2002 11:14:16 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18EtxN-0002Og-00 for emacs-devel@gnu.org; Thu, 21 Nov 2002 11:13:33 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18EtxI-0002Ga-00 for emacs-devel@gnu.org; Thu, 21 Nov 2002 11:13:33 -0500 Original-Received: from pcls1.std.com ([199.172.62.103] helo=TheWorld.com) by monty-python.gnu.org with esmtp (Exim 4.10) id 18EtxI-0002GV-00 for emacs-devel@gnu.org; Thu, 21 Nov 2002 11:13:28 -0500 Original-Received: from litterio-pc1.theworld.com ([65.219.235.146]) by TheWorld.com (8.9.3/8.9.3) with ESMTP id LAA31767 for ; Thu, 21 Nov 2002 11:13:27 -0500 Original-To: emacs-devel@gnu.org Original-Lines: 25 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386-msvc-nt5.0.2195) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9603 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9603 The documentation string for function string-match doesn't mention the closely related function match-string. This patch (against the current CVS sources) fixes that. Hope this helps. -- Francis Litterio franl@world.std.com http://world.std.com/~franl/ GPG and PGP public keys available on keyservers. --- search.c.~1.170.~ 2002-09-29 15:59:33.000000000 -0400 +++ search.c 2002-11-21 11:07:43.000000000 -0500 @@ -419,7 +419,9 @@ If third arg START is non-nil, start search at that index in STRING. For index of first char beyond the match, do (match-end 0). `match-end' and `match-beginning' also give indices of substrings -matched by parenthesis constructs in the pattern. */) +matched by parenthesis constructs in the pattern. You can also use +function match-string to extract substrings matched by parenthesis +constructions in the pattern. */) (regexp, string, start) Lisp_Object regexp, string, start; {