From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lars Brinkhoff Newsgroups: gmane.emacs.help Subject: Re: Lisp help: problem with uninterned symbols Date: 12 Dec 2003 21:44:52 +0100 Organization: nocrew Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <85ptet6a0r.fsf@junk.nocrew.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1071262127 28719 80.91.224.253 (12 Dec 2003 20:48:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Dec 2003 20:48:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 12 21:48:44 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AUuDL-0000au-00 for ; Fri, 12 Dec 2003 21:48:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AUvA0-0004Uc-7i for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Dec 2003 16:49:20 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AUv9a-0004UG-9d for help-gnu-emacs@gnu.org; Fri, 12 Dec 2003 16:48:54 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AUv94-0004HF-K0 for help-gnu-emacs@gnu.org; Fri, 12 Dec 2003 16:48:53 -0500 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AUv75-00033W-Ld for help-gnu-emacs@gnu.org; Fri, 12 Dec 2003 16:46:19 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AUu9d-0007GQ-00 for ; Fri, 12 Dec 2003 21:44:53 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AUu9c-0007GI-00 for ; Fri, 12 Dec 2003 21:44:52 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AUu9c-0007L8-00 for ; Fri, 12 Dec 2003 21:44:52 +0100 Original-Lines: 37 Original-X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15212 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15212 Stefan Monnier writes: > I think you're out of luck. Good to know I didn't miss something obvious. > Same thing with any other object, by the way: dumping a `cons' cell > twice in two different forms will lose the sharing information and > will thus result in having two distinct cons cells when read back. Yes, I noticed that too, but that haven't ran into that problem yet. > - avoid dumping the raw data and instead force the use of my-intern > when loading the file. Maybe with something like > > (defvar my-item (my-intern "foo")) > (defun foo () my-item) > (defun bar () my-item) That would be good enough I guess. > of course I strongly suspect that this example code is very > different from your actual code and turning one into the other my be > non-trivial. Umm, not really, I think. My example had enough of the essence of the problem. > If you can't do it easily, post more details here and we'll happily > make fun of you. All details are here: http://www.nocrew.org/cgi-bin/cvsweb/cvsweb.cgi/emacs-cl/ mostly in cl-packages.el and especially the kw macro in utils.el. -- Lars Brinkhoff, Services for Unix, Linux, GCC, HTTP Brinkhoff Consulting http://www.brinkhoff.se/