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: Thu, 21 Jun 2007 08:31:17 +0200 Message-ID: <86bqf9om2y.fsf@lola.quinscape.zz> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1182407488 28767 80.91.229.12 (21 Jun 2007 06:31:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 21 Jun 2007 06:31:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Herbert Euler" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 21 08:31:26 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 1I1GCU-0008Ai-19 for ged-emacs-devel@m.gmane.org; Thu, 21 Jun 2007 08:31:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1GCT-0000fm-Gz for ged-emacs-devel@m.gmane.org; Thu, 21 Jun 2007 02:31:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1GCP-0000fQ-2z for emacs-devel@gnu.org; Thu, 21 Jun 2007 02:31:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1GCN-0000fA-DN for emacs-devel@gnu.org; Thu, 21 Jun 2007 02:31:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1GCN-0000f7-7g for emacs-devel@gnu.org; Thu, 21 Jun 2007 02:31:19 -0400 Original-Received: from pc3.berlin.powerweb.de ([62.67.228.11]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I1GCM-0000pO-NB for emacs-devel@gnu.org; Thu, 21 Jun 2007 02:31:19 -0400 Original-Received: from quinscape.de (dslnet.212-29-44.ip210.dokom.de [212.29.44.210] (may be forged)) by pc3.berlin.powerweb.de (8.9.3p3/8.9.3) with ESMTP id IAA04110 for ; Thu, 21 Jun 2007 08:31:12 +0200 X-Delivered-To: Original-Received: (qmail 6316 invoked from network); 21 Jun 2007 06:31:17 -0000 Original-Received: from unknown (HELO lola.quinscape.zz) ([10.0.3.43]) (envelope-sender ) by ns.quinscape.de (qmail-ldap-1.03) with SMTP for ; 21 Jun 2007 06:31:17 -0000 Original-Received: by lola.quinscape.zz (Postfix, from userid 1001) id 5381A8FC89; Thu, 21 Jun 2007 08:31:17 +0200 (CEST) In-Reply-To: (Herbert Euler's message of "Thu\, 21 Jun 2007 09\:29\:52 +0800") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.51 (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:73494 Archived-At: "Herbert Euler" writes: >> >>Would someone please implement string-match-p and looking-at-p? >> >>(A variable would be more general, but not as simple to use. >> >>Its only advantage over save-match-data would be a small speedup.) >> > >> > Is there somebody working on it? If not, I would like to start it. >> >> Do you want to work on a new variable? Since adding `-p' to only two >> match functions doesn't make sense. And adding `-p' to all functions >> makes even less sense. >> >>For the reasons explained in my words quoted above, I've >>decided I want the two new functions and NOT the variable. > > Last confirming before working: can we implement a new variable at the > C level and implement the two new functions (possibly as macros) at > the Lisp level? This is an eclectic proposal and takes advantages > from both sides. Just as a note aside: regular expressions like \(.\)\1 are possible, so the match data _has_ to be stored somewhere, presumably. This might impact the attractiveness of the "C variable" implementation. -- David Kastrup