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: Compiling Elisp to a native code with a GCC plugin Date: Wed, 15 Sep 2010 18:05:32 +0200 Organization: Organization?!? Message-ID: <87bp7zhu0j.fsf@lola.goethe.zz> References: <87bp805ecr.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1284567111 20139 80.91.229.12 (15 Sep 2010 16:11:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Sep 2010 16:11:51 +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:11:50 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 1OvuaF-0004Dn-J5 for ged-emacs-devel@m.gmane.org; Wed, 15 Sep 2010 18:11:48 +0200 Original-Received: from localhost ([127.0.0.1]:40762 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvuaC-0000he-LS for ged-emacs-devel@m.gmane.org; Wed, 15 Sep 2010 12:11:40 -0400 Original-Received: from [140.186.70.92] (port=55493 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvuUV-0003nM-Mq for emacs-devel@gnu.org; Wed, 15 Sep 2010 12:05:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvuUU-0004Cd-KT for emacs-devel@gnu.org; Wed, 15 Sep 2010 12:05:47 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:54566) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvuUU-0004CV-Dn for emacs-devel@gnu.org; Wed, 15 Sep 2010 12:05:46 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OvuUS-0000B4-6z for emacs-devel@gnu.org; Wed, 15 Sep 2010 18:05:44 +0200 Original-Received: from p508edc0b.dip.t-dialin.net ([80.142.220.11]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Sep 2010 18:05:44 +0200 Original-Received: from dak by p508edc0b.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Sep 2010 18:05:44 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: p508edc0b.dip.t-dialin.net X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:dxCBkwl+lytlpNSRZB8AzY3dNKk= 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:130223 Archived-At: 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. -- David Kastrup