From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: Question about GC in C code. Date: Thu, 14 Nov 2002 07:18:57 +0100 (MET) Sender: emacs-devel-admin@gnu.org Message-ID: <200211140614.gAE6EvMU031551@stubby.bodenonline.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1037255981 15491 80.91.224.249 (14 Nov 2002 06:39:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 14 Nov 2002 06:39:41 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18CDfA-00041h-00 for ; Thu, 14 Nov 2002 07:39:40 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18CDrP-0004Fv-00 for ; Thu, 14 Nov 2002 07:52:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18CDbj-0006It-00; Thu, 14 Nov 2002 01:36:07 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18CDLU-0003SA-00 for emacs-devel@gnu.org; Thu, 14 Nov 2002 01:19:20 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18CDLP-0003Lq-00 for emacs-devel@gnu.org; Thu, 14 Nov 2002 01:19:18 -0500 Original-Received: from stubby.bodenonline.com ([193.201.16.94]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18CDLK-0003CE-00; Thu, 14 Nov 2002 01:19:11 -0500 Original-Received: from pc35.bodenonline.com (IDENT:root@[193.201.16.44]) by stubby.bodenonline.com (8.12.1/8.12.1) with ESMTP id gAE6EvMU031551; Thu, 14 Nov 2002 07:14:57 +0100 Original-To: rms@gnu.org In-Reply-To: from "Richard Stallman" at nov 13, 2002 11:10:01 X-Mailer: ELM [version 2.5 PL0pre8] Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9409 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9409 > > How about if alloc.c was modified so other code could register a function > to be called when GC occurs? That function could then mark lisp > objects as needed. > > Would it really make a big difference? I don't see it. It would be a > simplification in something already simple, that is only done very > rarely. Why do you think this would be a big improvement? The thing is I don't think I can guarantee that it will be rarely. Since Gtk is new and some issues not really solved (tooltips in menus, Gtk toolbar), I expect more Lisp_Objects may be needed in Gtk callback data. I would prefer to be able to make local changes in a Gtk only file rather that propagate these changes into files that really have nothing to do with GUI toolkits. Also, I think minimizing the number of files that have to have tests for USE_GTK is a good thing. Jan D.