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: Lars Magne Ingebrigtsen
Subject: Re: Compiling Elisp to a native code with a GCC plugin
Date: Fri, 17 Sep 2010 18:24:34 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> 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);

Yeah, I do that to in at_literal().

The thing I'm must unclear on now is whether it's valid to say

int thing = PT;

and whether it's valid to say

PT + 1;

I've grepped through the code, and this seems to be used all over the
place, so I'm guessing that perhaps the size of a buffer is constrained
to be less than INT_MAX?  Even though PT is EMACS_INT.

-- 
(domestic pets only, the antidote for overdose, milk.)
  address@hidden * Lars Magne Ingebrigtsen




reply via email to

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