From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Compiling Elisp to a native code with a GCC plugin Date: Fri, 17 Sep 2010 19:30:52 +0200 Organization: Programmerer Ingebrigtsen Message-ID: 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> <83fwx81gzp.fsf@gnu.org> <83bp7w1fzd.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1284744725 16609 80.91.229.12 (17 Sep 2010 17:32:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Sep 2010 17:32:05 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 17 19:32:04 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 1Owemd-00081w-C8 for ged-emacs-devel@m.gmane.org; Fri, 17 Sep 2010 19:31:59 +0200 Original-Received: from localhost ([127.0.0.1]:36451 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Owema-00073j-UN for ged-emacs-devel@m.gmane.org; Fri, 17 Sep 2010 13:31:32 -0400 Original-Received: from [140.186.70.92] (port=47953 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwemO-0006zB-Tz for emacs-devel@gnu.org; Fri, 17 Sep 2010 13:31:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwemA-00057t-1V for emacs-devel@gnu.org; Fri, 17 Sep 2010 13:31:09 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:41049) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Owem9-00057i-Hy for emacs-devel@gnu.org; Fri, 17 Sep 2010 13:31:05 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Owem7-0007kQ-Fo for emacs-devel@gnu.org; Fri, 17 Sep 2010 19:31:03 +0200 Original-Received: from cm-84.215.34.171.getinternet.no ([84.215.34.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Sep 2010 19:31:03 +0200 Original-Received: from larsi by cm-84.215.34.171.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Sep 2010 19:31:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 25 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.34.171.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEX+//z+/vX5+PDo5due iUn+//j////Kwqb+//M9MRFiFHn2AAACYElEQVQ4jW2Uz2/TMBTH3xIlOweIVG5RUjK4jbhadkSd UfAtZXjALbTC5VjaILfHdKvIkUOkyf8tz06aZYPXn3offb/v+Tk2hK/rLvb1IPbQ5XtcV57n4Y8G VeVfh97IM8ExfD7SoPJ8/pa84g7nOeA3gJPPakCVx0+iPIFBaIAKzq1ngT0EcKIVPgfrbG2fZpJK CcIVBZppgKZWEFo2IRtCXATQAR9BmMDyNJUpvtcyGAAripeYSok8S6Xbggqt7EUULzCPZJGQUCZc K3KIyDwRp5GUm5QIMS/X6c+RBtY5zIVYppJIieAF3d5l2iq3LYFAB+CnKOl2TC+hPoBtuR3QUVC6 ndAtYFM2xAPwQ6l71XwwiseAskyp/wC0WtPeyn4AoqQZ1cV9IG68cB/AJxpR3e7BJhdDK/GtvKW/ cIGHzzJbWQMgLHIJX9DqTMqSuEOCg0dwiOSEZZv4H+ClZcPu6fuuWS0twEFQjVXDqMrgAaACi1cv lQ6WBU+s/K+YbhSj2UW/+MKAVoHrDSNyJDCDmr9prdQ0FoveS4OdAU1zFYv5sWngCEpTQ2XvsKGL gcJnGTNkJcT3R6CRVGmEC1kOwfNGSl1kik7H4qar3x1YIegH5iC4a2SJjf3Rs+ib0gu8VVm6M6V7 0A2RSbljjcncHBUODtEf40axqUm4PcA996+vNil1n4CReUpIumoTcTEAHPCEdVUDOBY3gGXduIsb 6DbQ1Mh37D4KbRRBDqLQZ7MFfDJpCDknSeAE4LbnXFvh7fExsUgY4gYGvLsAnPaSqfFu8WYzfe3g /xm+Rvu/k9FqxWGTN20AAAAASUVORK5CYII= Mail-Copies-To: never X-Now-Playing: Joni Mitchell's _Ladies of the Canyon_: "Conversation" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:ttarVSNfFx4+nq5qDszfoIRPgHU= 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:130349 Archived-At: Eli Zaretskii 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.) larsi@gnus.org * Lars Magne Ingebrigtsen