From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: Compiling Elisp to a native code with a GCC plugin Date: Wed, 15 Sep 2010 17:23:11 +0100 Message-ID: References: <87bp805ecr.fsf@gmail.com> <87bp7zhu0j.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1284567964 24534 80.91.229.12 (15 Sep 2010 16:26:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Sep 2010 16:26:04 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 15 18:26:03 2010 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.69) (envelope-from ) id 1Ovuo7-00040m-6R for ged-emacs-devel@m.gmane.org; Wed, 15 Sep 2010 18:26:03 +0200 Original-Received: from localhost ([127.0.0.1]:53814 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ovuo6-0001qm-0i for ged-emacs-devel@m.gmane.org; Wed, 15 Sep 2010 12:26:02 -0400 Original-Received: from [140.186.70.92] (port=46214 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvunE-0001C0-DX for emacs-devel@gnu.org; Wed, 15 Sep 2010 12:25:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvunD-00088T-3m for emacs-devel@gnu.org; Wed, 15 Sep 2010 12:25:08 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:37834) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvunC-00088D-QT for emacs-devel@gnu.org; Wed, 15 Sep 2010 12:25:07 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OvunA-0003a0-4v for emacs-devel@gnu.org; Wed, 15 Sep 2010 18:25:04 +0200 Original-Received: from cpc1-cmbg13-0-0-cust596.5-4.cable.virginmedia.com ([86.9.122.85]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Sep 2010 18:25:04 +0200 Original-Received: from sdl.web by cpc1-cmbg13-0-0-cust596.5-4.cable.virginmedia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Sep 2010 18:25:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cpc1-cmbg13-0-0-cust596.5-4.cable.virginmedia.com Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAGFBMVEUKDAg1NjRWV1V9fnyg op/DxcLk5uP8/voi63ReAAAACXBIWXMAAAWJAAAFiQFtaJ36AAAAB3RJTUUH1goZAgAz00bgXgAA AeVJREFUKM9lk0Fz2jAQhQXJD3CCO70CmcC1YMtcWyTZ14Bl69xats4N9r6/3zWQBlodNKNPu/s0 b1cCQFuZGpfVVh3vAvBJolIXRkapSuoRUtIdFyo1Y5xSdlAj7OtvD1XnXxmWRi+eWgcxyCed1lVV B1CrKyujMoi+eLA5kU1SsjoHlW+nQjTtFxk4MXgrOxvIqzoTZR8XgPaLl419zgsMaSGFPiUOZCIh thsx5Xy9NsK8Kwf/JoQgMxcVJ301HKkcSWaT0O7FY056J4U9xcYfnmVXG4801lW6lqwu2nKFZoHC HuzvaTVndZ+LaRQgZdthXw1cpynEkLEwyFHXk/aIxNQ6QeooJuzPMB+wn+D7JJNsiCcVA13/A3h/ xE9J+WidpAwoYNmRFwyvSRhNVtsdaAewzZZP5uw82QL9+tyNfocyP0McAzICUr5Mk9RdIjWasUNx aIIt6NK4ZtXIMdfMQt3nuMAyWbLI4DqZ4xPq/ag8jPond4XU/cLuOgw6XCFX/YCUfcDAMMH58fD4 G9kDchwfqVefkBwup2uZM+Q4WhJt5jN3AxXCsaS2yXEDuWgS8VOzW0gFjhEPmLyFMKBFaLb1HRwc DiaKwx0EeTMRYnYPQRW3PP4HApvlMv0PttX5v/D6Aws3IOSEwzmLAAAAAElFTkSuQmCC User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (Mac OS X 10.6.4) Cancel-Lock: sha1:YAcSQhu/m3yFE6JxDFAQo0qrFvg= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:130224 Archived-At: On 2010-09-15 17:05 +0100, David Kastrup wrote: > Leo writes: > >> On 2010-09-15 16:51 +0100, Lars Magne Ingebrigtsen wrote: >>> looking-at probably compiles the regexp, so there might be unnecessary >>> overhead there. (The regexp compilation and caching and stuff.) >>> >>> Is there any function like >>> >>> (is-the-string-following-point-equal-to-this-string-p "foo ") >>> >>> in Emacs that I've overlooked somehow? >> >> Can you build one using compare-strings? > > More likely compare-buffer-substrings. It would be nicer if > compare-strings just accepted a buffer as either of its string > arguments. Sure, one can use buffer-substring-no-properties with > compare-strings or (with-temp-buffer (insert ... with > compare-buffer-substrings, but that feels clumsy in comparison. These two functions look similar, any idea why not extend compare-strings as David suggested? Leo