From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Compiling Elisp to a native code with a GCC plugin Date: Fri, 17 Sep 2010 18:18:02 +0200 Message-ID: <83fwx81gzp.fsf@gnu.org> References: <87bp805ecr.fsf@gmail.com> <87iq26z97e.fsf@uwakimon.sk.tsukuba.ac.jp> <87y6b0yi8o.fsf@uwakimon.sk.tsukuba.ac.jp> <87sk18bioh.fsf@lola.goethe.zz> <87fwx8bhkq.fsf@lola.goethe.zz> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1284740337 28049 80.91.229.12 (17 Sep 2010 16:18:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Sep 2010 16:18:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 17 18:18:55 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 1OwdeI-0001cK-Oi for ged-emacs-devel@m.gmane.org; Fri, 17 Sep 2010 18:18:55 +0200 Original-Received: from localhost ([127.0.0.1]:32976 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwdeH-0000SS-Um for ged-emacs-devel@m.gmane.org; Fri, 17 Sep 2010 12:18:54 -0400 Original-Received: from [140.186.70.92] (port=56459 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwddS-0008FT-JJ for emacs-devel@gnu.org; Fri, 17 Sep 2010 12:18:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwddP-0001QY-6P for emacs-devel@gnu.org; Fri, 17 Sep 2010 12:18:02 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:48898) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwddO-0001QO-UW for emacs-devel@gnu.org; Fri, 17 Sep 2010 12:17:59 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0L8W00300FWK1T00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Fri, 17 Sep 2010 18:17:58 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.210.149]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L8W0033KFXW1610@a-mtaout20.012.net.il>; Fri, 17 Sep 2010 18:17:58 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:130336 Archived-At: > From: Lars Magne Ingebrigtsen > Date: Fri, 17 Sep 2010 16:18:30 +0200 > > So I'm thinking the memcmp() is sufficient to give the desired result. > Isn't it? No, because of the gap issue. That's why Fbuffer_substring moves the gap out of its way: if (start < GPT && GPT < end) move_gap (start); This ensures that the region of buffer text between START and END is contiguous, without the gap. Which is why you can really use memcpy et al.