From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: emacs and guile (Re: ehelp woes, or why I hate a module that I love so much) Date: Thu, 18 Jul 2002 08:56:00 -0600 (MDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200207181456.g6IEu0J25108@aztec.santafe.edu> References: <20020704135240.4CBB.LEKTU@terra.es> <20020704164911.4CC1.LEKTU@terra.es> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1027004340 17443 127.0.0.1 (18 Jul 2002 14:59:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 18 Jul 2002 14:59:00 +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.33 #1 (Debian)) id 17VCk6-0004XE-00 for ; Thu, 18 Jul 2002 16:58:58 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17VCw3-0007yw-00 for ; Thu, 18 Jul 2002 17:11:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17VCk5-00076D-00; Thu, 18 Jul 2002 10:58:57 -0400 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17VChF-0006uf-00; Thu, 18 Jul 2002 10:56:01 -0400 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.11.6) with ESMTP id g6IEu5B00032; Thu, 18 Jul 2002 08:56:05 -0600 (MDT) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g6IEu0J25108; Thu, 18 Jul 2002 08:56:00 -0600 (MDT) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: raeburn@raeburn.org In-Reply-To: (message from Ken Raeburn on Tue, 16 Jul 2002 22:58:13 -0400) 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:5857 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5857 My approach last time around was to add a SCM field to most of the "interesting" data types (symbol, misc, and vectorlike), fill it in when the object was created, and make XSETFOO just copy the value out. Rather crude, and wasteful of storage space, but it got the job done, and it minimized the intrusion in random Emacs code and kept it running with both object representations. I don't think this method makes real sense, because if an object is going to have the scheme object header at all, we may as well use that object header universaly throughout Emacs as the way to reference the object. It would cost no extra storage, and it would be simpler. The place where having this extra baggage is really unfortunate is for the small data types--symbol and Lisp_Misc. Perhaps Scheme needs a new facility for small user data types. Why can't Guile's symbols be used as Lisp symbols?