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 19:30:52 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> I've grepped through the code, and this seems to be used all over the
>> place
>
> Each place where you see PT assigned to an int is a bug, please either
> report it or fix it right away.

Right.  Things like 

      int pt = PT;

in buffer.c is easy enough, but is the following (from insdel.c)
correct?  

      int b = XINT (Fmarker_position (current_buffer->mark));
      int e = XINT (make_number (PT));

I don't really understand the last line at all.  It first creates a
Lisp_Object number from PT, and then gets the C-level EMACS_INT value
from that again?  And then casts it to an 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]