From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: emacs and guile (Re: ehelp woes, or why I hate a module that I love so much) Date: Fri, 19 Jul 2002 00:23:02 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200207190423.g6J4N2A13705@rum.cs.yale.edu> References: <20020704135240.4CBB.LEKTU@terra.es> <20020704164911.4CC1.LEKTU@terra.es> <200207181456.g6IEu0J25108@aztec.santafe.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1027052678 8216 127.0.0.1 (19 Jul 2002 04:24:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 19 Jul 2002 04:24:38 +0000 (UTC) Cc: rms@gnu.org, 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 17VPJl-00028P-00 for ; Fri, 19 Jul 2002 06:24:37 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17VPVw-0001QJ-00 for ; Fri, 19 Jul 2002 06:37:12 +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 17VPJX-0006Jb-00; Fri, 19 Jul 2002 00:24:23 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17VPIG-0006HB-00; Fri, 19 Jul 2002 00:23:04 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g6J4N2A13705; Fri, 19 Jul 2002 00:23:02 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Ken Raeburn 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:5884 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5884 > A related issue is the symbol name -- a Lisp symbol name is a Lisp > string, with some of the associated fields ignored for matching > purposes. The names themselves can have text properties: > > ELISP> (symbol-name 'booga-booga) > #("booga-booga" 0 3 nil 3 6 > (some-prop some-val) > 6 11 nil) > > (I got this by previously interning a string with the same contents > and some text properties.) Actually, this is a recent change, right ? In Emacs-21.2, `symbol-name' always returns a string with no properties. In that case we should probably also strip the properties when we create a new symbol, instead of wasting those intervals. > An Emacs Lisp symbol's name can also be changed after interning, such > that it won't be found when interning either the old name or > (probably) the new name. This is undocumented and I don't know of any code that relies on it (well, I know of some such code, but not in any elisp package). I think it should be considered as a misfeature/bug (but I don't think it's worth fixing unless the fix is to make the output of `symbol-name' be read-only). > I don't know what Scheme's specifications > might say about such cases. (Much as I like Scheme, I'm hardly an > expert; on subtle Scheme issues I'll readily defer to others.) I'm pretty sure that Scheme's symbol-name (if such a function exists) returns a brand new string. Stefan