From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: Lisp help: problem with uninterned symbols Date: 12 Dec 2003 18:17:13 +0100 Organization: [posted via Easynet Spain] Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87fzfqot0m.fsf@thalassa.informatimago.com> References: <87smjqoyy0.fsf@thalassa.informatimago.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1071250284 3852 80.91.224.253 (12 Dec 2003 17:31:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Dec 2003 17:31:24 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 12 18:31:17 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 1AUr8H-0003Qp-00 for ; Fri, 12 Dec 2003 18:31:17 +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 1AUs40-0001MS-3Y for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Dec 2003 13:30:56 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!feed.news.tiscali.de!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!easynet-monga!easynet.net!easynet-post2!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Lines: 37 Original-NNTP-Posting-Host: 62.93.174.79 Original-X-Trace: DXC=A0?34?^G8TS1a1KW?cNE?Qi_giQ7bjRVZbBd4DjF1d]Q Original-Xref: shelby.stanford.edu gnu.emacs.help:119263 Original-To: help-gnu-emacs@gnu.org 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:15201 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15201 Lars Brinkhoff writes: > Pascal Bourguignon writes: > > Doctor, when I do this, it hurts! > > I still need to do it, and I'm willing to endure some pain. > > > You have the solution: encapsulate your compilation units in a progn. > > Not quite. As I wrote: > > > > that trick doesn't work if foo and bar are defined in two separate > > > file[s]. It seems to me that it's a "feature" of the byte compiler. It just does not search an uninterned symbols amongst all uninterned symbols ever created to find if there's another occurence. One question: why don't you use an obarray for you symbols? (I doubt that would change anything thought). What about interning all your symbols as normal emacs lisp symbols. Of course, you may want to prefix their names with a "package" name. Otherwise, I'm afraid you'll have to extend the emacs byte compiler to allow it to work with various sources of "interned" symbols. -- __Pascal_Bourguignon__ . * * . * .* . http://www.informatimago.com/ . * . .* There is no worse tyranny than to force * . . /\ () . * a man to pay for what he does not . . / .\ . * . want merely because you think it .*. / * \ . . would be good for him. -- Robert Heinlein . /* o \ . http://www.theadvocates.org/ * '''||''' . SCO Spam-magnet: postmaster@sco.com ******************