From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.devel Subject: Re: Make buffer- and frame-locals a misc object Date: Wed, 15 Aug 2012 18:33:23 +0400 Message-ID: <502BB333.70306@yandex.ru> References: <502B7EFB.7030300@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1345041222 20565 80.91.229.3 (15 Aug 2012 14:33:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Aug 2012 14:33:42 +0000 (UTC) Cc: Emacs development discussions To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 15 16:33:41 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 1T1efB-0007Va-PT for ged-emacs-devel@m.gmane.org; Wed, 15 Aug 2012 16:33:37 +0200 Original-Received: from localhost ([::1]:49978 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1efA-0004EO-R7 for ged-emacs-devel@m.gmane.org; Wed, 15 Aug 2012 10:33:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1ef7-0004E2-Kg for emacs-devel@gnu.org; Wed, 15 Aug 2012 10:33:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1ef5-0003qr-Pp for emacs-devel@gnu.org; Wed, 15 Aug 2012 10:33:33 -0400 Original-Received: from forward14.mail.yandex.net ([95.108.130.92]:47713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1ef5-0003qa-De for emacs-devel@gnu.org; Wed, 15 Aug 2012 10:33:31 -0400 Original-Received: from smtp12.mail.yandex.net (smtp12.mail.yandex.net [95.108.131.191]) by forward14.mail.yandex.net (Yandex) with ESMTP id D40211983167; Wed, 15 Aug 2012 18:33:29 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1345041209; bh=k8l/me0zH6rHQzK0R6C1VTPXLEcH81GlI7hJPRBnV0M=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=XBy22XSybUVn8tBn/er8rHklk7nKOKcyzDKmBrsXeq48IeTtbojF5cETwTG3Xddwg efdUPYyQ1ByvRPIyLiLm62Yzb8tnXW1QHvSWGbvzvkd0nI1W3qAda7EWUCY4GPNczt m9qnzxJZ+IYWPg9OvR8BIIOwR1lxAnt76QGYvPrE= Original-Received: from smtp12.mail.yandex.net (localhost [127.0.0.1]) by smtp12.mail.yandex.net (Yandex) with ESMTP id B223C16A07A5; Wed, 15 Aug 2012 18:33:29 +0400 (MSK) Original-Received: from unknown (unknown [37.139.84.55]) by smtp12.mail.yandex.net (nwsmtp/Yandex) with ESMTP id XSmqvr4x-XTmeDYND; Wed, 15 Aug 2012 18:33:29 +0400 X-Yandex-Rcpt-Suid: monnier@iro.umontreal.ca X-Yandex-Rcpt-Suid: emacs-devel@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1345041209; bh=k8l/me0zH6rHQzK0R6C1VTPXLEcH81GlI7hJPRBnV0M=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=oudXixjaH6edi2x1yecPD6jrLFvcfA9dVwOCBdkEyJdQpC1veR8+rhvahyTqct6Ql jFK/ZM0Mpeon7fdbedM2VVsaHJ+rCrK5U5dwMRdiZGwwNNyoBuF2yoeGCdi7//MdzI Sk/eChxbk2ZAPyVAZmj6MSQ14Dq2YDHe0xhQT8Ko= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 95.108.130.92 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:152551 Archived-At: On 08/15/2012 06:20 PM, Stefan Monnier wrote: >> This patch converts Lisp_Buffer_Local_Value to misc object (for the >> sake of GC-aware management) and provides simple inline access >> functions (for the sake of further GC development). > > No, that's going backward. > Please explain why you think you need that, so we can find alternatives. This patch 1) converts Lisp_Buffer_Local_Value to misc object (for the sake of GC-aware management) and 2) provides simple inline access functions (for the sake of further GC development). What's going backward - 1) or 2) or both? For 1), my previous (and inglorious) attempt to hack around save-excursion shows that mixing explicitly allocated/freed objects with GC-managed objects is poor idea, so getting rid of xmalloc/xfree makes the things more predictable. For 2), the usual purpose is to prepare the hooks for the write barrier. Dmitry