From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Emacs needs truely useful flex matching Date: Mon, 15 Apr 2013 09:50:50 -0400 Message-ID: References: <877gl0od6x.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1366033866 10346 80.91.229.3 (15 Apr 2013 13:51:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Apr 2013 13:51:06 +0000 (UTC) Cc: =?iso-8859-1?Q?=D3scar?= Fuentes , emacs-devel@gnu.org To: Le Wang Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 15 15:51:04 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1URjoG-0004p6-D0 for ged-emacs-devel@m.gmane.org; Mon, 15 Apr 2013 15:51:04 +0200 Original-Received: from localhost ([::1]:33895 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URjoG-0006Jm-3V for ged-emacs-devel@m.gmane.org; Mon, 15 Apr 2013 09:51:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URjo8-0006Ix-UZ for emacs-devel@gnu.org; Mon, 15 Apr 2013 09:51:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URjo3-0005sn-Tr for emacs-devel@gnu.org; Mon, 15 Apr 2013 09:50:56 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:52859) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URjo3-0005sj-OU for emacs-devel@gnu.org; Mon, 15 Apr 2013 09:50:51 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFxIEd/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMT X-IPAS-Result: Av4EABK/CFFFxIEd/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMT X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="7434107" Original-Received: from 69-196-129-29.dsl.teksavvy.com (HELO pastel.home) ([69.196.129.29]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 15 Apr 2013 09:50:47 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 47D8667BA3; Mon, 15 Apr 2013 09:50:50 -0400 (EDT) In-Reply-To: (Le Wang's message of "Mon, 15 Apr 2013 08:14:44 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158925 Archived-At: > Consider "fafbfcfd-bcd", your regexp will match "afbfcfd" from the first > word, but we want to prefer "a" from the first word, "bcd" from the second > word. Duh! Thanks for spelling it out. So indeed you'd need regexps like (re "ab...") = (concat "\\ Actually can I skip the GC somehow since I know I'm about to allocate a > bunch of memory that never gets freed. You can let-bound gc-cons-threshold, but I think it's not worth the risk (the let-binding may apply to more code than expected in situations such as debugging). Stefan