From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: announcing thaiword.el? Date: Tue, 29 Mar 2005 19:14:02 +0900 Message-ID: References: <20050325.081838.163323532.wl@gnu.org> <20050325.232613.73792307.wl@gnu.org> <200503260106.KAA20718@etlken.m17n.org> <200503280047.JAA25472@etlken.m17n.org> <200503290902.SAA29414@etlken.m17n.org> Reply-To: snogglethorpe@gmail.com, miles@gnu.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1112096215 22095 80.91.229.2 (29 Mar 2005 11:36:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2005 11:36:55 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, monnier@iro.umontreal.ca, Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 29 13:36:50 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DGF1J-0004BB-VM for ged-emacs-devel@m.gmane.org; Tue, 29 Mar 2005 13:36:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGFEE-0004CP-Q3 for ged-emacs-devel@m.gmane.org; Tue, 29 Mar 2005 06:49:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DGE6G-0008Qr-EG for emacs-devel@gnu.org; Tue, 29 Mar 2005 05:37:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DGE6C-0008P1-FH for emacs-devel@gnu.org; Tue, 29 Mar 2005 05:37:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGE6A-0008Aq-HO for emacs-devel@gnu.org; Tue, 29 Mar 2005 05:37:26 -0500 Original-Received: from [64.233.184.203] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DGDjX-0002Z2-27 for emacs-devel@gnu.org; Tue, 29 Mar 2005 05:14:03 -0500 Original-Received: by wproxy.gmail.com with SMTP id 40so7593wri for ; Tue, 29 Mar 2005 02:14:02 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=g91aRjpb7kyeFG5TllqQ/3Fb4KdovUHL0Ekz6onMYKMZXZpAAjpRzaTA0RViOV3u9RiJNhv+kf3fQp68ZPqjHC6nDbsiRhWzv4BFUQpscS/tQC/zbGWf/cg5InIzVxkBvdfSc3Ja4UA2hn0v9zbNBvOf2mDqZxAUCuFnmBbCPBI= Original-Received: by 10.54.17.54 with SMTP id 54mr80604wrq; Tue, 29 Mar 2005 02:14:02 -0800 (PST) Original-Received: by 10.54.19.32 with HTTP; Tue, 29 Mar 2005 02:14:02 -0800 (PST) Original-To: Kenichi Handa In-Reply-To: <200503290902.SAA29414@etlken.m17n.org> 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:35297 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35297 On Tue, 29 Mar 2005 18:02:51 +0900 (JST), Kenichi Handa wrote: > The problem is that the innermost function > re_match_2_internal doesn't know about the original buffer > or Lisp string. So, to make PREDICATE-FUN work, we must > generate a Lisp string each time and that will be extemely > slow. Hmmm, I see the following in referenced in various places in regex.c, and it seems to be set by Emacs callers to the regex functions: /* In Emacs, this is the string or buffer in which we are matching. It is used for looking up syntax properties. */ Lisp_Object re_match_object; search.c sets it to nil for the current buffer (and the string in the case of a string); if word_boundary_p were just passed this object and the position as extra arguments...? > And first of all, is re_match_2_internal a safe place > to call a Lisp function? Good question ... :-/ -Miles -- Do not taunt Happy Fun Ball.