From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: find-file-noselect needs save-match-data Date: Tue, 12 Jun 2007 23:55:21 +0200 Message-ID: <85k5u8x2gm.fsf@lola.goethe.zz> References: <46643852.6070709@gmx.at> <46665AD7.7040706@gmx.at> <87k5ueq23m.fsf@kfs-lx.testafd.dk> <87myz8c10t.fsf@jurta.org> <18030.3441.204697.244518@rgrjr.dyndns.org> <87zm3515r4.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1181685341 22035 80.91.229.12 (12 Jun 2007 21:55:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2007 21:55:41 +0000 (UTC) Cc: Juri Linkov , Miles Bader , emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 12 23:55:38 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HyEKr-0007xE-5b for ged-emacs-devel@m.gmane.org; Tue, 12 Jun 2007 23:55:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyEKq-0000XG-TN for ged-emacs-devel@m.gmane.org; Tue, 12 Jun 2007 17:55:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyEKn-0000X1-0h for emacs-devel@gnu.org; Tue, 12 Jun 2007 17:55:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyEKl-0000Wo-Fh for emacs-devel@gnu.org; Tue, 12 Jun 2007 17:55:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyEKl-0000Wl-Bz for emacs-devel@gnu.org; Tue, 12 Jun 2007 17:55:27 -0400 Original-Received: from mail-in-12.arcor-online.net ([151.189.21.52]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyEKk-00062q-Q9 for emacs-devel@gnu.org; Tue, 12 Jun 2007 17:55:27 -0400 Original-Received: from mail-in-01-z2.arcor-online.net (mail-in-09-z2.arcor-online.net [151.189.8.21]) by mail-in-12.arcor-online.net (Postfix) with ESMTP id 1BDCF4C359; Tue, 12 Jun 2007 23:55:25 +0200 (CEST) Original-Received: from mail-in-06.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) by mail-in-01-z2.arcor-online.net (Postfix) with ESMTP id 0B35028EC4E; Tue, 12 Jun 2007 23:55:25 +0200 (CEST) Original-Received: from lola.goethe.zz (dslb-084-061-059-142.pools.arcor-ip.net [84.61.59.142]) by mail-in-06.arcor-online.net (Postfix) with ESMTP id C146935E5A9; Tue, 12 Jun 2007 23:55:24 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 8926D1C3E01D; Tue, 12 Jun 2007 23:55:21 +0200 (CEST) In-Reply-To: (Andreas Schwab's message of "Tue\, 12 Jun 2007 19\:46\:10 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:72716 Archived-At: Andreas Schwab writes: > Juri Linkov writes: > >>> Bob Rogers writes: >>>> The only possible use for a "string-match" that doesn't set the match >>>> data is the boolean return value, right? So how about "string-match-p"? >>> >>> Er, no. string-match returns the index of the match (or nil for no match), >>> which is actually quite useful. >> >> Since it returns the value of (match-beginning 0), how about the name >> `string-match-0'? It is short, and zero has additional mnemonic that >> no data is set by this function. > > How about string-match-no-record? What about string-match-beginning? Or string-match-save? Or stealthy-string-match? The possibilities are endless. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum