From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109327: Generalize INTERNAL_FIELD between buffers, keyboards and frames. Date: Wed, 01 Aug 2012 14:04:22 -0700 Organization: UCLA Computer Science Department Message-ID: <501999D6.5010602@cs.ucla.edu> References: <50191B54.2070705@yandex.ru> <50194432.8000808@cs.ucla.edu> <87pq7av7fv.fsf@fleche.redhat.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1343855062 13129 80.91.229.3 (1 Aug 2012 21:04:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Aug 2012 21:04:22 +0000 (UTC) Cc: Dmitry Antipov , emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 01 23:04:21 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Swg5c-0006IJ-5A for ged-emacs-devel@m.gmane.org; Wed, 01 Aug 2012 23:04:20 +0200 Original-Received: from localhost ([::1]:45719 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Swg5b-0005Xe-Gq for ged-emacs-devel@m.gmane.org; Wed, 01 Aug 2012 17:04:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Swg5Z-0005XY-00 for emacs-devel@gnu.org; Wed, 01 Aug 2012 17:04:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Swg5Y-0003Ab-5m for emacs-devel@gnu.org; Wed, 01 Aug 2012 17:04:16 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:59263) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Swg5Y-0003AT-0B for emacs-devel@gnu.org; Wed, 01 Aug 2012 17:04:16 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 69E09A60008; Wed, 1 Aug 2012 14:04:14 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xEmD-tpWRDjf; Wed, 1 Aug 2012 14:04:14 -0700 (PDT) Original-Received: from [192.168.1.4] (pool-108-23-119-2.lsanca.fios.verizon.net [108.23.119.2]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 0596AA60007; Wed, 1 Aug 2012 14:04:14 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0 In-Reply-To: <87pq7av7fv.fsf@fleche.redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 131.179.128.62 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:152093 Archived-At: On 08/01/2012 10:38 AM, Tom Tromey wrote: > FWIW I think it is an interesting project, and the problems are all > surmountable. The first step, which is relatively easy and should be done anyway, is to use ASET (a, i, v) instead of AREF (a, i) = v when setting vectors, as that's how ASET and AREF are supposed to be used. I did that as trunk bzr 109381. I created a new function aref_addr (a, i) to substitute for "& AREF (a, i)" -- presumably the (rare) calls to aref_addr will need special attention if write barriers are implemented.