emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling Elisp to a native code with a GCC plugin


From: Eli Zaretskii
Subject: Re: Compiling Elisp to a native code with a GCC plugin
Date: Fri, 17 Sep 2010 18:18:02 +0200

> From: Lars Magne Ingebrigtsen <address@hidden>
> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]